Skip to content

Commit e15cf35

Browse files
code clean up
1 parent 7c049fa commit e15cf35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
584584
# Remove country code from the local number
585585
local_number = digits[len(country_code) :]
586586

587-
# Handle leading zero in local numbers (France & Germany)
588-
if region in ["FR", "DE", "GB", "IT", "ES", "BE"] and local_number.startswith("0"):
587+
# Handle leading zero in local numbers
588+
if region not in ["US", "CA"] and local_number.startswith("0"):
589589
# Remove the leading zero
590590
local_number = local_number[1:]
591591

0 commit comments

Comments
 (0)