zod
zod copied to clipboard
email() is not recognizing valid email
An email that includes '=' is not considered valid by Zod, but it's should be valid one.
Maybe same as this issue. email() does not seem to be exactly RFC compliant.
https://github.com/colinhacks/zod/issues/3707
Same here! Zod is saying valid emails are invalid.
Hi, @ckblockit. I'm Dosu, and I'm helping the Zod team manage their backlog and am marking this issue as stale.
Issue Summary:
- You reported that Zod's
.email()validation rejects emails containing the '=' character, which should be valid. - Other users noted this might be due to Zod's email validation not fully aligning with the RFC standard.
- The issue is related to #3707, where similar validation concerns were discussed.
- Valid emails are currently being marked invalid, indicating the validation logic may need updating.
- The issue remains unresolved with no recent updates or fixes.
Next Steps:
- Please confirm if this issue is still relevant with the latest version of Zod.
- If it is, you can keep the discussion open by commenting here; otherwise, I will automatically close this issue in 7 days.
Thanks for your understanding and contribution!