Skip to content

Commit 92dc91e

Browse files
Shortening "mode"
Second attempt to get rid of "too simple" ;-) * `loose` is the default!! (see https://symfony.com/doc/current/reference/configuration/framework.html#email-validation-mode) So you can't say that it's "too simple". In other words: "Look guys, we have something here, and we know that it's bullshit. But never mind - this is what we give you out of the box..." * Maybe it actually is enough for some users?
1 parent 50c3276 commit 92dc91e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

reference/constraints/Email.rst

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

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

133-
This option is optional and defines the pattern used to validate the email
133+
This option defines the pattern used to validate the email
134134
address. Valid values are:
135135

136-
* ``loose``, it uses a simple regular expression to validate the address (it
136+
* ``loose`` uses a simple regular expression (just
137137
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
138+
very simple and it's recommended to use one of the other modes instead;
139+
* ``html5`` uses the same regular expression
140140
as the `HTML5 email input element`_, making the backend validation consistent
141141
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`_.
142+
* ``strict`` uses the `egulias/email-validator`_ library (which you must
143+
install separately) to validate according to `RFC 5322`_.
144144

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

0 commit comments

Comments
 (0)