feat(isMobilePhone): Add South Sudan Locale And Prefix(SS)#2084
feat(isMobilePhone): Add South Sudan Locale And Prefix(SS)#2084profnandaa merged 5 commits intovalidatorjs:masterfrom cheboi:master
Conversation
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #2084 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 104 104
Lines 2328 2328
Branches 584 584
=========================================
Hits 2328 2328
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Hello all, After reading the provided reference, I think the RegExp is too permissive currently and would match invalid phone numbers as well. According to the reference above, there are only 4 valid "mobile access codes":
So the RegExp should actually check for these as well. Not an expert on South Sudan though, so please correct me if I am wrong. However, If I am right, the corrected RegExp in my opinion should look like this:
Examples: Valid: Invalid: |
|
Hello, |
|
@rubiin could you kindly update the labels, seeing that this still needs some changes? |
|
@cheboi thank you for the update! (@profnandaa would it be possible for me to gain rights to add/remove labels for the issues/PRs? I'd be glad to help with that. let me know, what the process for that would like like) |
profnandaa
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contrib! 🎉
|
@pano9000 -- sure, I've sent you an invite, let me know if you've seen it. Thanks for the help! |
added validation and test for isMobile code Locale for (SS).
reference file: https://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000F90002PDFE.pdf
Checklist