Skip to content

Commit

Permalink
Merge pull request #1 from shivamgutgutia/main
Browse files Browse the repository at this point in the history
checking if phone number is numeric
  • Loading branch information
shivamgutgutia authored Dec 25, 2023
2 parents 8bebbf4 + ca9cce7 commit 3919ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/vcfGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def generateVcard(row, headers, vCards):
fields = fields.split(",") if fields else []
for field in fields:
phone = row.get(field,"")
if phone:
if phone and phone.isnumeric():
telephone = vcard.add("tel")
telephone.type_param = ["HOME"]
telephone.value = phone
Expand Down

0 comments on commit 3919ec8

Please sign in to comment.