Closed rayteale closed 1 year ago
note that the library cannot detect landline phone numbers properly. https://github.com/AfterShip/phone#faq thank you very much
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 https://github.com/AfterShip/phone/blob/master/src/data/country_phone_data.ts#L1896
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' }