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

Wrong email validation #6091

Closed
dimasch opened this issue Feb 3, 2014 · 4 comments
Closed

Wrong email validation #6091

dimasch opened this issue Feb 3, 2014 · 4 comments

Comments

@dimasch
Copy link

dimasch commented Feb 3, 2014

If you enter the email address:
me@examplecom

It says the email is valid..

Check this in this URL (from the docs):

http://docs.angularjs.org/api/ng.directive:input.email

Depends on issue
#5899

@caitp
Copy link
Contributor

caitp commented Feb 3, 2014

me@examplecom is actually a valid email address, there is no requirement for an email domain to contain a top-level tomain.

We are aware of some other issues with email validation, which were also broken in Chrome.. They've since been fixed in Chrome, and we'll fix them in Angular for 1.3

@caitp
Copy link
Contributor

caitp commented Feb 4, 2014

I'm closing this because the specific concern raised is technically invalid, but stay tuned for the other email validation fixes, they'll be coming relatively soon

@steelx
Copy link

steelx commented Nov 16, 2015

You can quickly fix this my using ng-pattern

<input type="email" ng-pattern="/^[_a-z0-9]+(\.[_a-z0-9]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/">

@dimasch
Copy link
Author

dimasch commented Nov 16, 2015

Thx.

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