Merge pull request #1 from Zegnat/patch-1

Fix link to HTML’s email regular expression.
This commit is contained in:
John MacFarlane 2014-08-15 21:25:36 -07:00
Родитель 87e6d72da1 e91e207d46
Коммит 2eddae79ea
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"/>
for these purposes, is anything that matches
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-]{0,61}[a-zA-Z0-9])?)*$/