-
-
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
Email validator accepts special character "¸" which should not be valid #2360
Comments
I'm not knowledgeable enough about the exact email standards to determine if this is a bug or not, but you can set the |
Thanks @WikiRik I'll use this option. I still think it's an invalid email address in general so I guess it makes sense to show it as invalid in general but maybe it needs some more research to be sure. |
I've changed allow_utf8_local_part set to false how do I test it? |
Simply pass the email to the function and log it: // allow_utf8_local_part === false:
console.log(validator.isEmail('te¸[email protected]')); // => true
// allow_utf8_local_part === true:
console.log(validator.isEmail('te¸[email protected]')); // => false |
how do I log this |
run* |
Created pull request for the bug fix: #2384 |
Describe the bug
This email is invalid but the validator returns that it is valid:
te¸[email protected]
Examples
Additional context
Validator.js version: 13.11.0 (latest)
The text was updated successfully, but these errors were encountered: