Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Email Validation #16177

Closed
speedsters opened this issue Aug 16, 2017 · 4 comments
Closed

Email Validation #16177

speedsters opened this issue Aug 16, 2017 · 4 comments

Comments

@speedsters
Copy link

userForm.email.$invalid is false for spswain.14@gmail
Still, xxxx@xxx is a invalid email format. Please let me know. Thank you.

@gkalpak
Copy link
Member

gkalpak commented Aug 16, 2017

This is intentional. These emails are valid.

@speedsters
Copy link
Author

speedsters commented Sep 11, 2017

@gkalpak please give me an example, as i had been asked to replace with regex. Examples of email xxxx@xxx where it has been used, or can be created.

@frederikprijck
Copy link
Contributor

frederikprijck commented Sep 11, 2017

E.g. somename@localhost would be valid (but rly, anything x@y would be valid).

This all has to do with the domain name, which doesn't have to contain a ., see https://tools.ietf.org/html/rfc5321#section-2.3.5.

Ensure to read #16022 (comment) regarding an email address an it's validation.

@gkalpak
Copy link
Member

gkalpak commented Sep 11, 2017

Also, #14719 has some discussion as well as more info (and a lot of good resources) in the commit messages.

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

No branches or pull requests

3 participants