Uh oh!
There was an error while loading. Please reload this page.
feat(isMobilePhone) Fix Mobile Phone Regex Pakistan(PK) - #1778
Conversation
Update the regex to validate mobile numbers correctly for Pakistan
Codecov Report
@@ Coverage Diff @@## master #1778 +/- ##
=========================================
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.
Thank you for your PR @hammad20120 looks like your regex is also validating landline numbers. Please check and address my comment below!
Uh oh!
There was an error while loading. Please reload this page.
Update pakistan mobile regex according to suggestion Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
tux-tn
left a comment
There was a problem hiding this comment.
Thank you for making the necessary changes! LGTM 🎉
profnandaa
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contrib! 🎉
* Fix Mobile Phone Regex Pakistan(PK) Update the regex to validate mobile numbers correctly for Pakistan * Add tests for mobile number validation locale en-PK (Pakistan) * Linting fix * Update src/lib/isMobilePhone.js Update pakistan mobile regex according to suggestion Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com> * Update tests for PK phone numbers Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
* Fix Mobile Phone Regex Pakistan(PK) Update the regex to validate mobile numbers correctly for Pakistan * Add tests for mobile number validation locale en-PK (Pakistan) * Linting fix * Update src/lib/isMobilePhone.js Update pakistan mobile regex according to suggestion Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com> * Update tests for PK phone numbers Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
* Fix Mobile Phone Regex Pakistan(PK) Update the regex to validate mobile numbers correctly for Pakistan * Add tests for mobile number validation locale en-PK (Pakistan) * Linting fix * Update src/lib/isMobilePhone.js Update pakistan mobile regex according to suggestion Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com> * Update tests for PK phone numbers Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
Fixed the mobile phone regex for Pakistan.
Reference: 1, 2
Added tests for mobile phone, local en-PK (Pakistan)
Checklist