-
Notifications
You must be signed in to change notification settings - Fork 266
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
Library incorrectly flagging UAE phone numbers as incorrect #359
Comments
Example using https://www.npmjs.com/package/google-libphonenumber
|
from the data: https://github.com/AfterShip/phone/blob/master/src/data/country_phone_data.ts#L96C3-L97 |
Data in the link provided must be wrong. The phone number I posted in my initial message is a callable, correct Dubai phone. Go ahead and try it. |
The URL above is indeed the source data of this repo. |
https://github.com/google/libphonenumber/blob/master/resources/metadata/971/comments.csv Clearly phone numbers can be 8 digit. The source you are using is outdated. |
Furthermore, looking at |
The source code (https://github.com/AfterShip/phone/blob/master/src/data/country_phone_data.ts#L96C3-L97) would not be proactively updated, by nature eventually it should be outdated, it is the source code, not the "data source" we use 🙂
|
Further digging out from the wiki page Landline0x xxx xxxx (8-digits excluding thunk code Mobile05x xxx xxxx (9-digits excluding thunk code This also align with the data source you provided: https://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000DC0001PDFE.pdf |
An example of correct phone number:
+97148376525
Output of using
phone
:The text was updated successfully, but these errors were encountered: