mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 23:11:35 +00:00
Bug fix on incorrectly normalized number that starts with 0
This commit is contained in:
@@ -77,6 +77,6 @@ def normalize_number(number: str, country_code: str):
|
|||||||
return number[len(starting_char):]
|
return number[len(starting_char):]
|
||||||
|
|
||||||
# leading zero should be removed
|
# leading zero should be removed
|
||||||
if starting_char == '0':
|
if number.startswith('0'):
|
||||||
number = number[1:]
|
number = number[1:]
|
||||||
return country_code + number # fall back
|
return country_code + number # fall back
|
||||||
|
|||||||
Reference in New Issue
Block a user