Skip to content

Commit 1cfc1fd

Browse files
authored
fix: normalize phone number should only start with the country code
1 parent 8f885be commit 1cfc1fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mpesakit/utils/phone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def normalize_phone_number(phone: str) -> str | None:
3131
normalized
3232
and normalized.isdigit()
3333
and len(normalized) == 12
34-
and normalized.startswith("2547")
34+
and normalized.startswith("254")
3535
):
3636
return normalized
3737
else:

0 commit comments

Comments
 (0)