TheSharpieOne/angular-validation-match

Input match fails for case sensitive mails

Closed this issue · 1 comments

In general, emails are case insensitive. So the directive is failing in this case. Actually this is not a bug. Can we enhance the directive behavior by allowing the user to set an attribute like case-sensitive-match = true or false.

I'm horrible at typing and insensitive is not so easy to type... so I went with caseless
adding match-caseless="true" (true can be a scope var as well to make it toggle-able) will trigger the case insensitive matching.

<input ng-model="confirmation" match="original" match-caseless="true" />