-
Notifications
You must be signed in to change notification settings - Fork 216
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
inconsistent parse result when using National vs International number #176
Comments
Try the latest version and reply here
…On Tue, 6 Feb 2018 at 21:58, Abdellatif Ait boudad ***@***.***> wrote:
parse('0569887076', 'MA')// result: { "country": "MA", "phone": "569887076" }parse('+212569887076')// result: {}
The number is not valid but it can be parsed see
https://libphonenumber.appspot.com/phonenumberparser?number=%2B212+569887076
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#176>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAdH77byHy73jAgzxyn1m4RWjDAZt8fDks5tSKDNgaJpZM4R7jn5>
.
|
I'm using the latest version "^1.0.13" |
Oh, ok, didn't recognize you from the previous issue. |
Updated my comment. |
why not just adding |
Because it seems like a separate scenario from what |
On second thought, there are also cases when parsing local numbers for a given country could return ones which are possible but not valid. |
I experimented with "possible" numbers parsing and the new version is released with an undocumented feature:
Perhaps this can become an official feature some time after. |
I released the new version with "possible" numbers feature. Available
|
Demo has been updated |
Thanks sound good now! |
The number is not valid but it can be parsed see https://libphonenumber.appspot.com/phonenumberparser?number=%2B212+569887076
The text was updated successfully, but these errors were encountered: