Fix link to HTML’s email regular expression.
This commit is contained in:
Родитель
87e6d72da1
Коммит
e91e207d46
2
spec.txt
2
spec.txt
|
@ -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])?)*$/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче