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

isEmail does not reject emails when blacklisted_chars includes quote #2392

Open
krichards opened this issue May 1, 2024 · 0 comments
Open
Labels

Comments

@krichards
Copy link

Describe the bug
I'm trying to exclude quotes from the lower part of an email, and I can't see an explicit flag for that, but I can see you can use blacklisted_characters, however nothing that I've tried allows me to blacklist ".

validator.default.isEmail(email, {
blacklisted_chars: '"'
})

I would expect the validator to reject the following but it doesn't

Examples

'"foobar"@example.com',
'" foo m端ller "@example.com',
'"foo\@bar"@example.com',

Additional context
Validator.js version: 13.11.0
Node.js version: 20.11.1
OS platform: linux

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

1 participant