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

isValid() and isValidPhoneNumber() return real phone number is invalid #431

Closed xxv202 closed 1 year ago

xxv202 commented 1 year ago

Hi, I'm using isValid() to check if my input phone number is valid or not. But recently I found an issue with these special number. Phone number formatted for Australia that has the number starts with:

I read the document about full metadata set, I entered these type of number on the demo page https://catamphetamine.gitlab.io/libphonenumber-js/ but it's not working at all. I also tried isValidPhoneNumber() method but it returned invalid. Is there something wrong with the regex in metadata set? I'm using "libphonenumber-js": "^1.7.14". Thanks

catamphetamine commented 1 year ago

Hi. See the bug reporting section of the readme.

catamphetamine commented 1 year ago

You can reopen this issue after you rewrite the original comment as per the instructions.