mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-01-29 05:40:42 +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):]
|
||||
|
||||
# leading zero should be removed
|
||||
if starting_char == '0':
|
||||
if number.startswith('0'):
|
||||
number = number[1:]
|
||||
return country_code + number # fall back
|
||||
|
||||
Reference in New Issue
Block a user