-
-
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
Incorrect regex pattern #2312
Comments
HI I would like to work on this issue |
Hi i have raised the pr please check #2316 |
Hi, thanks for your comment. https://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000660028PDFE.pdf |
|
kindly reference my comment above: WIkipedia is not a proper reference, and I haven't received any other references, so I'll go ahead and close this one |
https://github.com/validatorjs/validator.js/blob/b958bd7d1026a434ad3bf90064d3dcb8b775f1a9/src/lib/isMobilePhone.js#L95C26-L95C26
I think this part of this pattern is wrong:
this regex pattern matches : '90', '91', '92', '93', and '99'. While in reality it can be any number after the number 9.
according to this wikipedia page the actual pattern for mobile number in this region is: 09xx xxx xxxx. so the 094...... is a valid number for this region while this regex code does not include it.
The text was updated successfully, but these errors were encountered: