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

Email validation would validate invalid email address #2122

Closed
DevArenaCN opened this issue Oct 16, 2023 · 1 comment
Closed

Email validation would validate invalid email address #2122

DevArenaCN opened this issue Oct 16, 2023 · 1 comment

Comments

@DevArenaCN
Copy link

Describe the bug
I'm using yup.string().email() to validate the email, but some invalid email addresses are returned as valid.

To Reproduce
The invalid email: 'email@email'

The validation schema: yup.string().email()

Expected behavior
It should return as invalid, but currently it's passing validation with flying color.

Platform (please complete the following information):

  • Browser [chrome,]
  • Version [1.3.2]
@jquense
Copy link
Owner

jquense commented Oct 16, 2023

#1906 see the section on email validation. yup matches browsers, that is infact a valid email address, it may not for your app though so you are encouraged to update or extend to meet your own needs

@jquense jquense closed this as completed Oct 16, 2023
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

2 participants