Fix link to HTML’s email regular expression.

This commit is contained in:
Martijn van der Ven 2014-08-16 00:59:05 +02:00
Родитель 87e6d72da1
Коммит e91e207d46
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5447,7 +5447,7 @@ and the URL is `mailto:` followed by the email address.
An [email address](#email-address), <a id="email-address"/> An [email address](#email-address), <a id="email-address"/>
for these purposes, is anything that matches for these purposes, is anything that matches
the [non-normative regex from the HTML5 the [non-normative regex from the HTML5
spec](http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state-%28type=email%29): spec](http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-%28type=email%29):
/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])? /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?
(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ (?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/