Skip to content
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

Region code for phone numbers with no fixed country (e.g. +808) are erroneously set to US #17

Closed
ckpwong opened this issue Nov 3, 2017 · 0 comments

Comments

@ckpwong
Copy link

ckpwong commented Nov 3, 2017

Certain phone number country dialing codes are not associated with specific countries, for example, +800, +808, and +870.

The official Java and JavaScript libphonenumber correctly do not set the region code and country code for these phone numbers. However, awesome-phonenumber incorrectly identify these numbers as US phone numbers.

See https://github.com/googlei18n/libphonenumber/blob/master/resources/PhoneNumberMetadata.xml for detailed metadata used in official libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant