catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.76k stars 218 forks source link

+15575001171 number not validated as valid phone number when it is valid by Google's libphonenumber #443

Closed norkhairi closed 1 year ago

norkhairi commented 1 year ago

As per title, the phone number seems to be valid when tested with Google's libphonenumber package but not with libphonenumber-js

norkhairi commented 1 year ago

Google libphonenumber (via https://htmlpreview.github.io/?https://github.com/google/libphonenumber/blob/master/javascript/i18n/phonenumbers/demo-compiled.html) image

norkhairi commented 1 year ago

Libphonenumber-js demo page (https://catamphetamine.github.io/libphonenumber-js/) image

catamphetamine commented 1 year ago

Nowhere does it say that the demo page is on github.io. Or does it? Where did you get that link?

catamphetamine commented 1 year ago

The demo page says "Valid".

image

norkhairi commented 1 year ago

Nowhere does it say that the demo page is on github.io. Or does it? Where did you get that link?

@catamphetamine My bad, I thought this link https://catamphetamine.github.io/libphonenumber-js/ is official demo page for libphonenumber-js