-
Notifications
You must be signed in to change notification settings - Fork 31
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
Some +8xx ranges can be stubbed using libphonenumber data but aren't #17
Comments
|
Would you like a commit bit? :-) |
|
Oy, no. Just need validation and formatting working properly at work. I don't care about any of the rest of it. :-) |
|
I merged your PR which fixes this |
|
Er, no, I did not fix this in #16. The toll-free number "country codes" are still skipped in |
|
Ah, OK, I was confused because the test is for a +1-8xx number, not a +8xx number |
|
Me too! |
|
... and closed again, because they get instantiated as N::P::StubCountry |
|
Is that okay? Should they not get formats associated with them? For example, 800: |
|
This is a nice-to-have, but there are architectural problems in N::P::Country[::Data]. Never mind the repetition of data, but it also assumes that each "country" has at most one country code. InternationalNetworks has 2, and Inmarsat has 5. libphonenumber only knows about one of Inmarsat's codes (the other four are old and being replaced by the the new one, but I think are still in service), but it does know about +882 and +883. When I add support for these, need to have thorough tests for 882/883. |
|
Thanks. The US-style toll-free numbers are good enough for me, since we require country codes for all numbers, anyway. |
|
I just had a mailing list created for Number::Phone users: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/number-phone |
|
working on this in branch add-8xx-ranges |
|
Pull request #114 |
|
Merged and will be in the next release |
These tests will fail:
I suspect it's because international toll-free numbers are ignored by this code in
build-data.stubs:Can we restore this and get the country lookup to recognize toll-fee numbers?
The text was updated successfully, but these errors were encountered: