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.77k stars 218 forks source link

phone number validation error #390

Closed arthutox closed 4 years ago

arthutox commented 4 years ago

Steps to reproduce

pls try check this number +856 20 57 777 777 https://catamphetamine.gitlab.io/libphonenumber-js/

Observed result

and you will see Valid: false but if you try +856 20 77 777 777, Valid: true this is strange, the first number is definitely valid.

Expected result

I think the result should be valid. +856 20 57 777 777

Google's demo link

https://libphonenumber.appspot.com/phonenumberparser?number=%2B856+20+57+777+777

catamphetamine commented 4 years ago

Google's demo says "Valid: false", so the result is correct.