daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.04k stars 130 forks source link

Valid Australian phone numbers starting with `483` failed validation #270

Closed nilstzh closed 3 months ago

nilstzh commented 1 year ago

We have an Australian phone number that is falsely invalidated by phonelib.

Here is an example:

irb(main):022:0> Phonelib.parse('61483910455').valid?
=> false

I the libphonenumber demo it is parsed correctly.

Screenshot 2023-02-27 at 09 55 05

Is there a way to fix it?

EDIT: looks like this is a problem for all numbers starting with 483. Numbers starting with 482 or 484 for example doesn't have this problem

ElMassimo commented 1 year ago

This seems fixed in the latest version of the library.