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

Canadian 310-XXXX toll free numbers recognized as legal US numbers? #120

Closed
gosnat-bethel opened this issue Jun 5, 2024 · 2 comments
Closed

Comments

@gosnat-bethel
Copy link

With a region code of "US", most of the time a legal phone number involves 10 digits (3 for area code, 7 for the local number). This makes sense.

However, any number starting with "310" will validate with only 7 digits (so no area code required).

After a tiny bit of investigation, it looks like in Canada, a number starting with "310" is some sort of local-only toll-free number so that rule would make sense for region code "CA", but why does it also match for region code "US" where 310 is an area code in California and should require 10 digits?

@grantila
Copy link
Owner

grantila commented Jul 2, 2024

I'm pretty sure this is an upstream issue with libphonenumber if anything. Please report it to libphonenumber: https://github.com/google/libphonenumber/blob/master/CONTRIBUTING.md#filing-a-metadata-issue

@grantila grantila closed this as completed Jul 2, 2024
@gosnat-bethel
Copy link
Author

Thanks. I notice that there's already this issue, so I'll hold off on filing another one:

https://issuetracker.google.com/issues/335892662

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