From 07f4a8f6e0fe2c0b77df2cc64f0ba751134f4cbe Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 26 Sep 2021 14:18:35 +0200 Subject: [PATCH] Shortening "mode" --- reference/constraints/Email.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/constraints/Email.rst b/reference/constraints/Email.rst index 771c9bcff64..0ac07621537 100644 --- a/reference/constraints/Email.rst +++ b/reference/constraints/Email.rst @@ -130,17 +130,17 @@ Parameter Description **type**: ``string`` **default**: (see below) -This option is optional and defines the pattern used to validate the email +This option defines the pattern used to validate the email address. Valid values are: -* ``loose``, it uses a simple regular expression to validate the address (it +* ``loose`` uses a simple regular expression (just checks that at least one ``@`` character is present, etc.). This validation is - too simple and it's recommended to use one of the other modes instead; -* ``html5``, it validates email addresses using the same regular expression + very simple and it's recommended to use one of the other modes instead; +* ``html5`` uses the same regular expression as the `HTML5 email input element`_, making the backend validation consistent with the one provided by browsers; -* ``strict``, it uses the `egulias/email-validator`_ library (which you must - install separately) to validate the addresses according to the `RFC 5322`_. +* ``strict`` uses the `egulias/email-validator`_ library (which you must + install separately) for validation according to `RFC 5322`_. The default value used by this option is set in the :ref:`framework.validation.email_validation_mode `