intl-tel-input icon indicating copy to clipboard operation
intl-tel-input copied to clipboard

Issue with more recent Nigerian phone numbers (091, +23491)

Open michaelthedev opened this issue 3 years ago • 2 comments

Steps to reproduce

  1. Set country to NG
  2. Use phone number format (091.....) eg. 09181092333

Expected behaviour

Works fine for other numbers but the 091 numbers are new, just being issued

Actual behaviour

It formats the number correctly after calling getNumber(), but isValidNumber() returns '0'
I checked Google's libphonenumber and has the same issue

Initialisation options

Country is Nigeria (NG)

michaelthedev avatar Sep 08 '22 06:09 michaelthedev

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 avatar Sep 13 '22 13:09 jackocnr

I just published a new version of the plugin with an updated version of libphonenumber - please try that and let me know if it solves your issue.

jackocnr avatar Sep 13 '22 14:09 jackocnr

Closing due to inactivity.

jackocnr avatar Apr 07 '23 13:04 jackocnr