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

Different output when parsing #4

Closed
aloisdg opened this issue Dec 14, 2016 · 2 comments
Closed

Different output when parsing #4

aloisdg opened this issue Dec 14, 2016 · 2 comments

Comments

@aloisdg
Copy link

aloisdg commented Dec 14, 2016

Hello,

I tried to check the validity of +33169454850 like this:

var libphonenumber = window['libphonenumber-js'];
document.body.innerText = libphonenumber.isValidNumber('+33169454850');

demo

And got "false", but "true" when I try on the official project demo.

What did I miss?

Thank you!

@catamphetamine
Copy link
Owner

Oh, that was a silly one.
Thx for the bug report, fixed.
Try the new release:
https://github.com/halt-hammerzeit/libphonenumber-js/releases/tag/0.2.2

@aloisdg
Copy link
Author

aloisdg commented Dec 14, 2016

You are welcome!

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