nyaruka / phonenumbers

GoLang port of Google's libphonenumber library
MIT License
1.25k stars 148 forks source link

Incorrect national number validation (KZ) #120

Closed mayken closed 2 years ago

mayken commented 2 years ago

In Kazakhstan, the phone number starts with +7 (7XX) XXX-XX-XX, but +7 (9XX) XXX XXXX not is Kazakhstan number, how to fix?

Example:

Screen Shot 2022-11-27 at 02 13 48
rowanseymour commented 2 years ago

We use the metadata from https://github.com/google/libphonenumber and they have it as a valid number https://libphonenumber.appspot.com/phonenumberparser?number=%2B79261234567&country=KZ. So if that's wrong it needs to be fixed there.

mayken commented 1 year ago

We use the metadata from https://github.com/google/libphonenumber and they have it as a valid number https://libphonenumber.appspot.com/phonenumberparser?number=%2B79261234567&country=KZ. So if that's wrong it needs to be fixed there.

Now it works correctly there:

rowanseymour commented 1 year ago

Great, I've updated the metadata we use, and made a new release!