daddyz/phonelib

Nigeria’s National Numbering Plan has been changed from 1 Jan 2024

Closed this issue · 2 comments

Hello, as announced on the website of the Nigerian Communications Commission, the National Numbering Plan has changed since January 1, 2024. Now, when calling from outside Nigeria, you should dial 20 after the country code 234.

For example:
Old | New
234 1 XXX XXXX | 234 201 XXX XXXX

You can find more details on the official page:
https://ncc.gov.ng/media-centre/public-notices/1428-itu-notification-of-change-in-national-numbering-plan

Current situation:
Google libphonenumber:
+2342012270000 - valid? True
+23412270000 - valid? True

Phonelib:
+2342012270000 - valid? False
+23412270000 - valid? True

I believe we need to update the library to support both variations of numbers (for legacy compatibility) as it currently operates with Google's libphonenumber.

@falshunov fixed in v0.8.7

@daddyz Thank you so much for your prompt action! I've checked and now that works fine.