Giter VIP home page Giter VIP logo

Comments (12)

ekkis avatar ekkis commented on May 27, 2024

the problem is that the mobile_begin_with field in iso3166Data.js for the US does not contain the 800 area code. Curiously, it does contain the 888, which is also a toll-free area code. so it's inconsistent that way. it should include 800

if I provide a PR will you merge?

from phone.

ekkis avatar ekkis commented on May 27, 2024

in any case, in the US there are no special area codes for mobile numbers

from phone.

Bossa573 avatar Bossa573 commented on May 27, 2024

Hi @ekkis,
all PRs are welcome for sure.
for such case, please attach any references (websites, wiki, PDFs, etc) for the related change

from phone.

ekkis avatar ekkis commented on May 27, 2024

awesome. it may take me a few days. super busy right now. not sure what you mean about references

from phone.

Bossa573 avatar Bossa573 commented on May 27, 2024

@ekkis it's refering to any material that showing 800 is the US's area code

from phone.

ekkis avatar ekkis commented on May 27, 2024

you mean that 800 is an area code within the US? it is because I use it all the time. I'm not sure there's "material" on the subject but it's easily verified

from phone.

Bossa573 avatar Bossa573 commented on May 27, 2024

@ekkis
I see.

Because we are unable to verify every area codes in every country,
we have to rely on all the material we could find.
(We are not US-based either)

Anyway I found a supporting article showing the usage of 800
https://en.wikipedia.org/wiki/Wide_Area_Telephone_Service
but I'm unable to tell if it is an area code used by mobile phone number

from phone.

ekkis avatar ekkis commented on May 27, 2024

within the NANP zone (which includes Canada, the US and a number of other countries), 800 and 888 are treated as toll-free numbers but there is no specification that they cannot be hosted by a cell phone. in fact, they can, because NANP makes no special distinction for mobile handsets. see: https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes

from phone.

Bossa573 avatar Bossa573 commented on May 27, 2024

For this case, I'll add 800 to the list,
please check the new release 2.3.13.

https://github.com/AfterShip/phone/releases/tag/2.3.13

from phone.

ekkis avatar ekkis commented on May 27, 2024

awesome, and thank you!

from phone.

dalepo avatar dalepo commented on May 27, 2024

is this working? currently using 2.4.2 and (800) is not passing validation.
Thanks!

from phone.

Bossa573 avatar Bossa573 commented on May 27, 2024

@dalepo Please provide full phone number and the code snippet, and even better, create a new separated issue

from phone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.