From 170a108109e75a2d0d32cd4dc791b12385ca1912 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Wed, 7 May 2025 21:31:03 +0800 Subject: [PATCH] Bug fix on incorrectly normalized number that starts with 0 --- Whatsapp_Chat_Exporter/vcards_contacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/vcards_contacts.py b/Whatsapp_Chat_Exporter/vcards_contacts.py index ea38371..d2d566b 100644 --- a/Whatsapp_Chat_Exporter/vcards_contacts.py +++ b/Whatsapp_Chat_Exporter/vcards_contacts.py @@ -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