Comments (10)
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.
I have had to add regex to strip out the “x5555” from Faker phone numbers just so my tests won’t break.
from faker.
@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.
@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 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.
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.
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.
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.
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.
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)
- Add package version support policy HOT 1
- Discuss release schedule HOT 2
- Drop support for PHP 7.4 HOT 4
- Update docs to reflect different major versions HOT 2
- Remove functionality for populating ORM models and entities HOT 1
- The output of the md5(), sha1() and sha256() generators is misleading HOT 4
- The output of Base::randomFloat() is biased for certain inputs
- The Miscellaneous::boolean() generator could take a random float instead of an integer
- Warning DEPRECATED use of static pt_BR PhoneNumber HOT 1
- Opinions on Providing a Fake for CIDR/IP Prefixes HOT 3
- Faker images links are broken HOT 6
- Unable to get any other text but Latin HOT 4
- E-commerce Plugin - Feature HOT 1
- [ru_RU/PersonProvider] Double `а` in female lastName when using the `name()` function HOT 3
- Feature Request: Adjective Animal HOT 2
- Issue when try to use the create() function in the class_exists, throws an error when the documentation says the the function should not returns error just bool value. HOT 1
- `Generator::seed` in `Generator::__destruct` may break determinism HOT 1
- date/datetime functions not consistently seedable HOT 1
- `gmail.com.au` domain causes email validation to fail
- Is it maintained ? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faker.