Closed j-christoffersen closed 1 month ago
Email validation has been much discussed in the issues, and this is the current policy: https://github.com/colinhacks/zod/pull/2157
I'd recommend just using z.string().regex()
if you're looking for something more permissive.
z.string().email()
incorrectly marks emails using a=
as invalid.=
should be valid for the local-part of an email address.Version: 3.23.8
Testing with the following code:
Which outputs: