Skip to content

Commit 0bda552

Browse files
committed
upgrade mode value to html5-allow-no-tld and add versionadded block to specify when mode was introduced
1 parent 6533dee commit 0bda552

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reference/constraints/Email.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This option defines the pattern used to validate the email address. Valid values
111111
to use one of the other modes instead;
112112
* ``html5`` uses pretty the same regular expression as the `HTML5 email input element`_,
113113
but also force the usage of tld.
114-
* ``allow-no-tld`` uses exactly the same regular expression as the `HTML5 email input element`_,
114+
* ``html5-allow-no-tld`` uses exactly the same regular expression as the `HTML5 email input element`_,
115115
making the backend validation consistent with the one provided by browsers.
116116
* ``strict`` validates the address according to `RFC 5322`_ using the
117117
`egulias/email-validator`_ library (which is already installed when using
@@ -128,6 +128,10 @@ The default value used by this option is set in the
128128
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
129129
configuration option.
130130

131+
.. versionadded:: 6.2
132+
133+
The ``html5-allow-no-tld`` mode was introduced in 6.2.
134+
131135
.. deprecated:: 6.2
132136

133137
The ``loose`` value is deprecated since Symfony 6.2. Starting from

0 commit comments

Comments
 (0)