cakephp / localized

I18n and L10n related CakePHP code
Other
214 stars 179 forks source link

US phone number with prefix (NXX) 811 not working #219

Closed rochamarcelo closed 2 years ago

rochamarcelo commented 2 years ago

Hi,

I'm using the phone validation and got an issue with a client trying to use a phone number with prefix (NXX) 811, based on wikipedia page 811 is valid. https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes#500.E2.80.93599

I want to know if there is a reason for this behavior. I could send a pull request to allow 811.

dereuromark commented 2 years ago

Please do so, yes.

othercorey commented 2 years ago

That document seems to indicate it's not a valid area code. It is used as a stand-alone number.

rochamarcelo commented 2 years ago

@othercorey from wikipedia I've found this In the United States, 8-1-1 provides a uniform national phone number to access local [utility location](https://en.wikipedia.org/wiki/Utility_location) services . I can say that we got a phone number with 811 and were able to call and a fax line answered.

dereuromark commented 2 years ago

With a PR we could already have talked about the implementation and fix and most likely already merged and released it :)

rochamarcelo commented 2 years ago

@dereuromark I didn't sent a pull request before because I was not able to code .