Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a separate basic number format for US #1848

Merged
merged 2 commits into from
Apr 27, 2023
Merged

add a separate basic number format for US #1848

merged 2 commits into from
Apr 27, 2023

Conversation

dlwrnc
Copy link
Contributor

@dlwrnc dlwrnc commented Apr 22, 2023

issue ticket: #1847

What does this change

Adds a 'basic phone number' type to en_US to comply with some form requirements, as well as a unit test.

What was wrong

Some forms do not allow for phone formats with extensions or country codes. As a result, the faker get_phone function for en_US doesn't work for all cases.

How this fixes it

Adds a function that allows the user to only use 'basic' ten-digit phone numbers and standard formatting.

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you run make lint to format the code according to our settings?

@dlwrnc
Copy link
Contributor Author

dlwrnc commented Apr 25, 2023

@fcurella thanks for the catch -- linting complete.

@dlwrnc dlwrnc requested a review from fcurella April 27, 2023 02:45
Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@fcurella fcurella merged commit 787a933 into joke2k:master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants