-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not correctly parse Zimbabwe numbers +263 #350
Comments
note that the library cannot detect landline phone numbers properly. |
Not just landline numbers. Also fails with eSim mobile numbers. i havent tested with other Zim mobiles. |
Can you provide the precise correct format (and the prove showing those are the correct mobile phone number format)? |
Format refering to mainly about phone number prefix and the phone number length |
My customer complained with a number [+263 78 589 xxxx]. Apparently this is an eSim number in Zimbabwe. My application is for mobiles only. Perhaps they have recently added 78 to mobile area codes. Unfortunately I am not in that country so cant test at all. (I can confirm that it works with other mobiles). |
Apparently 78 is valid mobile for Zimbabwe - according to Wikipedia. Econet Wireless Zimbabwe. See "How to call a Zimbabwe mobile phone number" on this page https://en.wikipedia.org/wiki/Telephone_numbers_in_Zimbabwe |
I'll add 78 to it in the next release |
Version 3.1.31
Does not seem to recognise valid Zimbabwe numbers.
Cresta Hotel in Harare
+263 24 2772633 : {
isValid: false,
phoneNumber: null,
countryIso2: null,
countryIso3: null,
countryCode: null
}
By contrast Mojo Hotel in Cape Town
+27 87 940 7474 : {
isValid: true,
phoneNumber: '+27879407474',
countryIso2: 'ZA',
countryIso3: 'ZAF',
countryCode: '+27'
}
The text was updated successfully, but these errors were encountered: