-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prefix going as suffix, fix: phone number with +91 syntax gettin…
…g discarded
- Loading branch information
1 parent
48b649d
commit dd4428e
Showing
3 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .createDf import createDf | ||
from .vcfGenerator import generateVcard,generateVcf | ||
from .vcfGenerator import generateVcard,generateVcf | ||
from .validateNumbers import validatePhoneNumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# import phonenumbers | ||
import phonenumbers | ||
|
||
# def validatePhoneNumber(number): | ||
# try: | ||
# parsedNumber = phonenumbers.parse(number) | ||
# return phonenumbers.is_valid_number(parsedNumber) | ||
# except phonenumbers.phonenumberutil.NumberParseException as e: | ||
# return False | ||
def validatePhoneNumber(number): | ||
try: | ||
parsedNumber = phonenumbers.parse(number) | ||
return phonenumbers.is_valid_number(parsedNumber) | ||
except phonenumbers.phonenumberutil.NumberParseException as e: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters