Bug fix on incorrectly normalized number that starts with 0

This commit is contained in:
KnugiHK
2025-05-07 21:31:03 +08:00
parent 1348ec89f0
commit 170a108109

View File

@@ -77,6 +77,6 @@ def normalize_number(number: str, country_code: str):
return number[len(starting_char):]
# leading zero should be removed
if starting_char == '0':
if number.startswith('0'):
number = number[1:]
return country_code + number # fall back