Giter Club home page Giter Club logo

Comments (10)

pimjansen avatar pimjansen commented on June 23, 2024

Do you have some more info on what is invalid there and what you expect?

Please ensure the bugreport is valid as mentioned in the template

from faker.

hopeseekr avatar hopeseekr commented on June 23, 2024

I have had to add regex to strip out the “x5555” from Faker phone numbers just so my tests won’t break.

from faker.

pimjansen avatar pimjansen commented on June 23, 2024

@hopeseekr do we even know where the X is for? Looking at the wiki i dont see it existing in any spec.

However im not from the regionso for me it is hard to tell

from faker.

MGatner avatar MGatner commented on June 23, 2024

@pimjansen it indicates an extension, usually not dialed with the phone number but after connecting to a main relay. They are not uncommon but individuals would never have extensions, it is an indicator of a business number.

from faker.

pimjansen avatar pimjansen commented on June 23, 2024

@pimjansen it indicates an extension, usually not dialed with the phone number but after connecting to a main relay. They are not uncommon but individuals would never have extensions, it is an indicator of a business number.

So therefor they are valid?

from faker.

MGatner avatar MGatner commented on June 23, 2024

That depends on who you ask! The reason I opened this issue is that they aren't considered valid by Stripe or Firebase (probably among others). They are never valid programmatically, as in you cannot dial them. However people in the USA would understand what they meant and how to use them, and you may not be able to reach the desired person without the extra info.

from faker.

MGatner avatar MGatner commented on June 23, 2024

In my opinion the appropriate way to handle these should have been to have extension be a separate endpoint. I'm not sure if changing it now would be considered BC

from faker.

pimjansen avatar pimjansen commented on June 23, 2024

Well imo a phonenumber is reachable by a phone. Meaning that if it is a number that you can not dial it is not ok and should not be in the output.

To keep it simple we ofcourse want to create these numbers at any point. Therefor i think it is best to add a method to generate the numbers that are now considered wrong and update the existing one.

Will that work?

from faker.

MGatner avatar MGatner commented on June 23, 2024

Absolutely! That would be awesome. So to be clear, this would be something like:

  • Add phoneNumberWithExtension // '201-886-0269 x3767'
  • Adjust existing phoneNumber // '919-824-1234'

from faker.

pimjansen avatar pimjansen commented on June 23, 2024

Absolutely! That would be awesome. So to be clear, this would be something like:

  • Add phoneNumberWithExtension // '201-886-0269 x3767'
  • Adjust existing phoneNumber // '919-824-1234'

Yes would work for me

from faker.

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.