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

isValidPhoneNumber function return wrong result #442

Closed thanhbinh0995 closed 1 year ago

thanhbinh0995 commented 1 year ago

I used this website to check phone number 2949491 in IR and it return valid = false https://catamphetamine.gitlab.io/libphonenumber-js/?parseCountry=IR&parseValue=2949491&asYouTypeCountry=US&findNumbersCountry=US&findNumbersText=For%20more%20details%20call%20%2B7%20(800)%20555-35-35%20internationally%20or%20reach%20the%20local%20US%20branch%20at%20(213)%20373-4253%20ext.%201234%20for%20paid%20customer%20support.

image

but function isValidPhoneNumber return true

image image

can you check this issue? thanks

catamphetamine commented 1 year ago

See the "Note: " in your screenshot. Import from libphonenumber-js/max.