Email Id validation fails in AngularJS V1.8.0
Vishal-Bhavsar opened this issue · 1 comments
Vishal-Bhavsar commented
Hi,
It looks like email id validation fails for AngularJS V1.8.0.
As per document https://docs.angularjs.org/api/ng/input/input%5Bemail%5D the email id me@example is a valid email id but it shouldn't be.
Could you please look in to it and provide resolution for same.
gkalpak commented
This is a duplicate of #16177 (among others 😁).
tl;dr
Such e-mails are valid (see also #14719 for some discussion and links to more info regarding valid e-mail addresses in general).
As mentioned in the docs, if you need different validation rules, you can either use ng-pattern
or modify the built-in email
validator.