-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat: (isMobilePhone) add El Salvador validation #1766
feat: (isMobilePhone) add El Salvador validation #1766
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1766 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 102 102
Lines 2029 2029
Branches 457 457
=========================================
Hits 2029 2029
Continue to review full report at Codecov.
|
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.
Hello @hereje and thank you for your PR!
The regex should only validate mobile phone numbers, looks like yours is also validating landline numbers. Please make the necessary changes to allow only mobile phones.
You can use this document from ITU or the Wikipieda article to know how mobile phones work in El Salvador
* Solve issue with wrong validation on El Salvador mobile phones * update tests accordingly in order to define the right regEx, the following site was consulted. https://www.siget.gob.sv/guia-de-servicios/consulta-el-plan-de-numeracion/numeros-moviles/
Done |
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.
Thank you for making the necessary changes @hereje ! LGTM 🎉
Is your contribution related to hacktoberfest?
@tux-tn Yes it is! |
Yes sir ! That's why i asked 😃 |
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.
LGTM, thanks for your contrib! 🎉
@hereje -- please fix the merge conflict on README and we should be good. |
Will be merged in #1851, no worries your commit contribution will be preserved. Thanks! |
feat: (isMobilePhone) add El Salvador validation
Add mobile phone validation for El Salvador
Related to issue: #1761
Checklist