feat: (isMobilePhone) add El Salvador validation#1766
feat: (isMobilePhone) add El Salvador validation#1766hereje wants to merge 2 commits intovalidatorjs:masterfrom hereje:feat/add-validator-on-isMobilePhone-for-El_Salvador
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.
|
tux-tn
left a comment
There was a problem hiding this comment.
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 |
|
@tux-tn Yes it is! |
|
Yes sir ! That's why i asked 😃 |
profnandaa
left a comment
There was a problem hiding this comment.
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