DrHyde / perl-modules-Number-Phone

Number::Phone and friends

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update CPAN Module

juliogreff opened this issue · comments

Probably one of my colleagues contacted you before about the CPAN module version :)

Brazil recently added a new digit to their cellphone numbers. libphonenumbers is up to date, could you please updated the CPAN module? I have the data in my fork of the repo if that helps you in any way.

Thanks!

Thanks for letting me know, I'll get that done this week.

Can you give me an example number so I can add a test for it?

Thanks a lot!

Example numbers:

  • Should pass validation: +55 35 9 98 70 56 56
  • Shouldn't pass validation anymore: +55 35 98 70 56 56 (the first 9 after the area code is is now required, so old numbers are invalid)

Hmm according to the libphonenumber regex the first 9 in that number is optional, so both validate OK. Note the 9? here.

I had a look on the ITU website and it's a bit confusing. It indicates that libphonenumber might be Very Wrong - you should probably take this up with them. In the mean time, I'll do a release that will at least accept the new numbers with the extra digit.

The 9 being optional is acceptable for us for the moment, since it's a human (and usually a Brazilian human) picking up the phone and dialing, but we'll take it up with them indeed. We'll be waiting for the release. Thanks a lot!

3.0012 is on the CPAN now.