-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cannot accurately parse a phone number with country code and no exit code (or +) #39
Comments
Could you give a few code examples ? Please be exhaustive as there are some use cases that might be conflicting. In particular do you specify a caller or destination country. Do you parse incomplete phone numbers ? |
Here's my test cases that were all passing with the 5.x version of the library:
Hopefully that helps :) thanks for the prompt response. |
Fixed in #53 Except this one : +21 123 4567' with IsoCode.NZ As it does not make sense... +211 is for another country than NZ |
I was previously using this library to sanitize phone numbers in a variety of formats.
This test used to parse (input -> sanitised output)
640211234567
->+64211234567
Now it seems this package no longer interprets the country code, because there is no leading exit code (or +).
When I parse this number, the international number returned is
+64640211234567
(double 64)The text was updated successfully, but these errors were encountered: