-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow phone number dashes #495
base: master
Are you sure you want to change the base?
Conversation
[diff-counting] Significant lines: 11. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! A suggestion is to explicitly define where the dashes should be, so that a phone number like 40-98204-652 will be flagged as invalid.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define a validity check to ensure that dashes cannot just be placed anywhere.
Summary
Test Plan
Valid inputs:
Invalid inputs (too long):
Notes
Breaking Changes