Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Wrong email validation #2982

Closed
valerii15298 opened this issue Nov 21, 2023 · 3 comments
Closed

BUG: Wrong email validation #2982

valerii15298 opened this issue Nov 21, 2023 · 3 comments

Comments

@valerii15298
Copy link

valerii15298 commented Nov 21, 2023

There were introduced breaking changes in minor release for email validation.
Previously emails such as som.el'user@example.com were successfully validated using z.string().email()

In zod 3.21.4 such email is valid
But in zod 3.22.4 such email is invalid

Such emails should be valid, so this issue should be fixed I suppose.

@valerii15298 valerii15298 changed the title Wrong email validation BUG: Wrong email validation Nov 21, 2023
@valerii15298
Copy link
Author

Probably this commit did break this: 2ba00fe#diff-52632a4861fc9d7dc2dacef13cd91d60286dd706c1bb57438b8ee6a579a8796a

@fernandollisboa
Copy link
Contributor

I'd like to work on this, but unfortunately, I believe it's not going to happen:

#3218 (comment)

@colinhacks
Copy link
Owner

colinhacks commented Apr 16, 2024

Fixed in #2889, landing in 3.23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants