Skip to content
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 address starting with double quote passes isEmail validation #2432

Closed
bc-koenvanzuijlen opened this issue Jul 25, 2024 · 2 comments
Closed
Labels

Comments

@bc-koenvanzuijlen
Copy link

Describe the bug
When an email address string starts with a double quote it seems to pass validation, if the quote is not the first character it fails.

Reproductions

const validator = require("validator");
console.dir(String(validator.isEmail('john"[email protected]')));
console.dir(String(validator.isEmail('"[email protected]')));

Output:

'false'
'true'

Additional context
Validator.js version: 13.12.0
Node.js version: 20.9.0
OS platform: macOS

@VanshajTiwari
Copy link

Please Assign me this issue

@code0emperor
Copy link
Contributor

Has this issue been solved?

code0emperor added a commit to code0emperor/validator.js that referenced this issue Aug 9, 2024
code0emperor added a commit to code0emperor/validator.js that referenced this issue Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants