-
-
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 returns true for +01112353576 when passing any as locale. Is this a bug? #1066
Comments
PR is welcome. |
I will also try to do more investigation on this bug @Youssefares and @profnandaa. |
@ezrqnkemboi @profnandaa Any update on this would be much appreciated |
@heiba, let me get back to you tomorrow or the end of the day on this one. Cc. @profnandaa. |
@Youssefares, @heiba, your questions might be answered by 'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/, Cc. @profnandaa. |
@Youssefares for the question on |
@Youssefares and @heiba your feedback is needed here so that we can see if there is something we can do or we close this issue. Cc. @profnandaa. |
issue is still valid and has also been reported here: #2055 (with an additional issue regarding +07 starting numbers) |
refactored the regexp: --- * removed meaningless {1} quantifiers * simplified regexp a bit (removing useless escape character) * fixed the bug that would cause it to match invalid numbers tests --- * added tests for invalid numbers fixes validatorjs#1066
refactored the regexp: --- * removed meaningless {1} quantifiers * simplified regexp a bit (removing useless escape character) * fixed the bug that would cause it to match invalid numbers tests --- * added tests for invalid numbers fixes validatorjs#1066
refactored the regexp: --- * removed meaningless {1} quantifiers * simplified regexp a bit (removing useless escape character) * fixed the bug that would cause it to match invalid numbers tests --- * added tests for invalid numbers fixes #1066
Is there a valid country dial code in this number? If so could you enlighten me 😄
This is the same for all numbers starting with +01 and having length 10 or 11 not counting the +.
This happens even with strictMode set to True.
The text was updated successfully, but these errors were encountered: