5 ms·
Your email validation code is too strict. From Wikipedia: The local-part of the e-mail address may use any of these ASCII characters: Uppercase and lowerc
by naz 16y ago
Your email validation code is too strict.
From Wikipedia:
The local-part of the e-mail address may use any of these ASCII characters:
Uppercase and lowercase English letters (a–z, A–Z)
Digits 0 to 9
Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
Character . (dot, period, full stop) provided that it is
not the first or last character, and provided also that
it does not appear two or more times consecutively
(e.g. John..Doe@example.com).
- joneath 16y agoThanks, I will update the regex in the next release.
- chrisbroadfoot 16y agoYou should use the HTML5 email field: http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state http://www.whatwg.org/specs/web-apps/current-work/multipage/...