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

Improved US Phone Number formats #43

Merged
merged 4 commits into from
Feb 15, 2017

Conversation

chrisgriffith
Copy link
Contributor

Allow for ( or not for the area code
Allow 3 consecutive digits between 0-9
Allows for the closing )
Allows for a space or hyphen between the area code and the prefix
Allows 3 consecutive digits between 0-9 for the prefix
Allows for a space or hyphen between the prefix and the suffix
Allows 4 consecutive digits between 0-9 for the suffix.
NOTE: extensions (ie: x2580) are not supported

@yuyang041060120
Copy link
Owner

Thanks for contributes. But please add unit tests.

@chrisgriffith
Copy link
Contributor Author

Not sure why the conflict is there, but tests have been added.

@yuyang041060120 yuyang041060120 merged commit d6e8b68 into yuyang041060120:master Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants