Skip to content

Commit 6533dee

Browse files
committed
Document new usage of HTML5_ALLOW_NO_TLD mode. see #47872
1 parent 43f8662 commit 6533dee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/constraints/Email.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ This option defines the pattern used to validate the email address. Valid values
109109
* ``loose`` uses a simple regular expression (just checks that at least one ``@``
110110
character is present, etc.). This validation is too simple and it's recommended
111111
to use one of the other modes instead;
112-
* ``html5`` uses the same regular expression as the `HTML5 email input element`_,
113-
making the backend validation consistent with the one provided by browsers;
112+
* ``html5`` uses pretty the same regular expression as the `HTML5 email input element`_,
113+
but also force the usage of tld.
114+
* ``allow-no-tld`` uses exactly the same regular expression as the `HTML5 email input element`_,
115+
making the backend validation consistent with the one provided by browsers.
114116
* ``strict`` validates the address according to `RFC 5322`_ using the
115117
`egulias/email-validator`_ library (which is already installed when using
116118
:doc:`Symfony Mailer </mailer>`; otherwise, you must install it separately).

0 commit comments

Comments
 (0)