jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers
https://intl-tel-input.com
MIT License
7.54k stars 1.94k forks source link

.isValidNumber() result diferent from .isValidNumber() from google phone library #1559

Closed mmorales-aeropost closed 4 months ago

mmorales-aeropost commented 4 months ago

Steps to reproduce

  1. Input number +50600000000

Expected behaviour

When phone is validated using .isValidNumber() result should be FALSE like google phone library shows. https://htmlpreview.github.io/?https://github.com/google/libphonenumber/blob/master/javascript/i18n/phonenumbers/demo-compiled.html image .isValidNumberPrecise() shows as invalid, but it is too complex to use.

Actual behaviour

.isValidNumber() shows as valid image

Initialisation options

Default

jackocnr commented 4 months ago

We use libphonenumber for formatting, validation and generating placeholder numbers - if your issue relates to one of these things, please check their test site first and if you see the problem there please file an issue with them instead.

If it's working correctly in libphonenumber, the next step is to check that we're using the latest version of libphonenumber in the plugin - check the version history here. If we need to upgrade, it only takes 5 minutes to do this yourself and submit a Pull Request - instructions here: Updating to a new version of libphonenumber.

jackocnr commented 4 months ago

I've just released v21.0.7 with the latest version of libphonenumber. That should fix your issue, so I'll close this issue for now, but feel free to re-open if you're still having problems.