zod icon indicating copy to clipboard operation
zod copied to clipboard

z.string().email() does not validate successfully where emails have single quotes in them

Open Mansehej opened this issue 2 years ago • 4 comments

z.string().email() fails validation when an email with a single quote (') is used.

Example: o'[email protected]

This is allowed in RFFC 5332 as well.

Mansehej avatar Oct 20 '23 11:10 Mansehej

Could we get the fix on this approved?

andybayer-grp avatar Jan 03 '24 19:01 andybayer-grp

Any update on this? This is causing problems for quite a few of our users.

mitchmcleod-ew avatar Jan 08 '24 01:01 mitchmcleod-ew

+1 — seeing legitimate email addresses from Google Workspaces get flagged erroneously. E.g. brian.o'[email protected]

coreyward avatar Feb 26 '24 22:02 coreyward

@colinhacks Could we please get an update on this?

Mansehej avatar Feb 29 '24 10:02 Mansehej

Is this issue still open?

vaishu567 avatar Mar 09 '24 12:03 vaishu567