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

Relaxing the email validation #1735

Merged
merged 5 commits into from
Oct 9, 2019
Merged

Relaxing the email validation #1735

merged 5 commits into from
Oct 9, 2019

Conversation

luisrudge
Copy link
Contributor

Changes

To better handle unicode values in the domain part, we need to relax the email validation. After some internal discussions, I decided that it's easier to let the server decide if the email is valid or not. This PR only validates that the email:

  • is a string
  • has a @
  • has a .
  • doesn't have a (white space)

I think this is all that is right amount of balance between the user experience and actual email validation

References

ESD-2239

Testing

  • This change adds unit test coverage

@luisrudge luisrudge requested a review from a team October 3, 2019 19:38
src/field/email.js Show resolved Hide resolved
src/__tests__/field/email.test.js Outdated Show resolved Hide resolved
@luisrudge luisrudge requested a review from a team October 9, 2019 02:04
@luisrudge luisrudge merged commit 8e63381 into master Oct 9, 2019
@luisrudge luisrudge added this to the v11.18.0 milestone Oct 10, 2019
@stevehobbsdev stevehobbsdev deleted the fix/email-validation branch December 4, 2019 10:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants