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

Parsing "+17878787" as "AIA"? #31

Closed
domkm opened this issue Jul 16, 2015 · 2 comments
Closed

Parsing "+17878787" as "AIA"? #31

domkm opened this issue Jul 16, 2015 · 2 comments

Comments

@domkm
Copy link

domkm commented Jul 16, 2015

phone("+17878787") // ["+17878787", "AIA"]

It looks like this shouldn't happen because Anguilla numbers begin with "+1 264". Is this a bug?

@teddychan
Copy link
Member

+1 787 / 939 Puerto Rico
I also double check and fix the following location

+1 United States, including United States territories:
+1 340 United States Virgin Islands
+1 670 Northern Mariana Islands
+1 671 Guam
+1 684 American Samoa
+1 787 / 939 Puerto Rico

+1 Many, but not all, Caribbean nations and some Caribbean Dutch and British Overseas Territories:
+1 242 Bahamas
+1 246 Barbados
+1 264 Anguilla
+1 268 Antigua and Barbuda
+1 284 British Virgin Islands
+1 345 Cayman Islands
+1 441 Bermuda
+1 473 Grenada
+1 649 Turks and Caicos Islands
+1 664 Montserrat
+1 721 Sint Maarten <-- Newly added
+1 758 Saint Lucia
+1 767 Dominica
+1 784 Saint Vincent and the Grenadines
+1 809 / 829 / 849 Dominican Republic
+1 868 Trinidad and Tobago
+1 869 Saint Kitts and Nevis
+1 876 Jamaica

@teddychan
Copy link
Member

Notice that phone("+17878787") should be an invalid phone number (no matter mobile or land)
as +1 787 XXXX YYY total should be 11 digits.

teddychan pushed a commit that referenced this issue Aug 26, 2015
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

2 participants