zod icon indicating copy to clipboard operation
zod copied to clipboard

email() is not recognizing valid email

Open ckblockit opened this issue 10 months ago • 2 comments

An email that includes '=' is not considered valid by Zod, but it's should be valid one.

ckblockit avatar Feb 19 '25 21:02 ckblockit

Maybe same as this issue. email() does not seem to be exactly RFC compliant.

https://github.com/colinhacks/zod/issues/3707

oimo23 avatar Feb 22 '25 10:02 oimo23

Same here! Zod is saying valid emails are invalid.

pedrohdionisio avatar May 01 '25 01:05 pedrohdionisio

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!

dosubot[bot] avatar Jul 31 '25 16:07 dosubot[bot]