DrHyde / perl-modules-Number-Phone

Number::Phone and friends
24 stars 31 forks source link

Update CPAN Module #50

Closed juliogreff closed 8 years ago

juliogreff commented 8 years ago

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!

DrHyde commented 8 years ago

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?

juliogreff commented 8 years ago

Thanks a lot!

Example numbers:

DrHyde commented 8 years ago

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

DrHyde commented 8 years ago

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.

juliogreff commented 8 years ago

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!

DrHyde commented 8 years ago

3.0012 is on the CPAN now.