File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -109,19 +109,24 @@ This option defines the pattern used to validate the email address. Valid values
109
109
* ``loose `` uses a simple regular expression (just checks that at least one ``@ ``
110
110
character is present, etc.). This validation is too simple and it's recommended
111
111
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 the regular expression of the `HTML5 email input element `_,
113
+ except it enforces a tld to be present.
114
+ * ``html5-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.
114
116
* ``strict `` validates the address according to `RFC 5322 `_ using the
115
117
`egulias/email-validator `_ library (which is already installed when using
116
118
:doc: `Symfony Mailer </mailer >`; otherwise, you must install it separately).
117
119
120
+ .. versionadded :: 6.2
121
+
122
+ The ``html5-allow-no-tld `` mode was introduced in 6.2.
123
+
118
124
.. tip ::
119
125
120
126
The possible values of this option are also defined as PHP constants of
121
127
:class: `Symfony\\ Component\\ Validator\\ Constraints\\ Email `
122
128
(e.g. ``Email::VALIDATION_MODE_STRICT ``).
123
129
124
-
125
130
The default value used by this option is set in the
126
131
:ref: `framework.validation.email_validation_mode <reference-validation-email_validation_mode >`
127
132
configuration option.
You can’t perform that action at this time.
0 commit comments