Skip to content

Shortening "mode" #15856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions reference/constraints/Email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <reference-validation-email_validation_mode>`
Expand Down