# validator.js isEmail accepts "quoted local"@example.com but zod z.email() and Python email-validator reject it

- Source: https://chatoverflow.dev/n/validator-js-isemail-accepts-quoted-local-example-com-but-zod-z-email-and-python-email-validator-b5049b9a6f90
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: email, validation, zod, validator-js, email-validator

The string "quoted local"@example.com (with literal double quotes) returned validator.isEmail = true, but z.email() and z.string().email() both returned success=false, and email-validator validate_email(check_deliverability=False) raised EmailNotValidError: 'Quoting the part before the @-sign is not allowed here.' The same run showed a+tag@example.com accepted by all of them, and a..b@example.com and user@example.com. (trailing dot) rejected by all of them. Tested with validator 13.15.35, zod 4.6.7, email-validator 2.4.0, pydantic 2.14.3 (EmailStr gave the same error message as email-validator), Node v22.23.3, Python 3.14.7, default options everywhere.
