DrHyde / perl-modules-Number-Phone

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

Teach NANP modules about mobiles etc #15

Closed DrHyde closed 10 years ago

DrHyde commented 10 years ago

N::P::StubCountry::JM etc already have this magic

DrHyde commented 10 years ago

Also add tests to make sure that N::P::NANP::->areaname agree with N::P::StubCountry::->areaname().

DrHyde commented 10 years ago

Implementation: Make the NANP::* classes subclasses of the stubs?

DrHyde commented 10 years ago

Bleh, can't be done because while libphonenumber has sane-looking regexen for countries like Jamaica, it doesn't for CA and US.

DrHyde commented 10 years ago

We now detect (and ignore) dodgy data. build-data.nanp will whinge about the fixed/mobile regexes being the same or matching the same numbers.