-
-
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
isMobilePhone: en-BM matches invalid numbers #2115
Comments
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Dec 6, 2022
that one particular number combination was missing the `$` end-of-string anchor, which caused the bug validatorjs#2115 fixes validatorjs#2115
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Dec 6, 2022
Merged
2 tasks
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Jan 28, 2023
that one particular number combination was missing the `$` end-of-string anchor, which caused the bug validatorjs#2115 fixes validatorjs#2115
pano9000
added a commit
to pano9000/validator.js
that referenced
this issue
Jan 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When passing a phone number that starts with
59
(after the country code),isMobilePhone
will match invalid strings as validExamples
+14415974653 this should not match
isMobilePhone
should returnfalse
, due to the additional string part, but currently it returnstrue
.Similar to #2113, this is caused by a missing end-of-string anchor in the RegExp.
PR with the fix coming in a few moments
The text was updated successfully, but these errors were encountered: