Skip to content

Commit d9db717

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Shortening "mode"
2 parents c1620b0 + f6d7e69 commit d9db717

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

reference/constraints/Email.rst

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,15 @@ Parameter Description
130130

131131
**type**: ``string`` **default**: (see below)
132132

133-
This option is optional and defines the pattern used to validate the email
134-
address. Valid values are:
135-
136-
* ``loose``, it uses a simple regular expression to validate the address (it
137-
checks that at least one ``@`` character is present, etc.). This validation is
138-
too simple and it's recommended to use one of the other modes instead;
139-
* ``html5``, it validates email addresses using the same regular expression
140-
as the `HTML5 email input element`_, making the backend validation consistent
141-
with the one provided by browsers;
142-
* ``strict``, it uses the `egulias/email-validator`_ library (which you must
143-
install separately) to validate the addresses according to the `RFC 5322`_.
133+
This option defines the pattern used to validate the email address. Valid values are:
134+
135+
* ``loose`` uses a simple regular expression (just checks that at least one ``@``
136+
character is present, etc.). This validation is too simple and it's recommended
137+
to use one of the other modes instead;
138+
* ``html5`` uses the same regular expression as the `HTML5 email input element`_,
139+
making the backend validation consistent with the one provided by browsers;
140+
* ``strict`` uses the `egulias/email-validator`_ library (which you must
141+
install separately) for validation according to `RFC 5322`_.
144142

145143
The default value used by this option is set in the
146144
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`

0 commit comments

Comments
 (0)