-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Validator] - EmailConstraint reference #3469
Changes from 2 commits
faa034b
e4a0e2f
f0b3b85
517e4c5
aa5aa61
a0dd460
c50f041
257c483
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ cast to a string before being validated. | |
+----------------+---------------------------------------------------------------------+ | ||
| Applies to | :ref:`property or method <validation-property-target>` | | ||
+----------------+---------------------------------------------------------------------+ | ||
| Options | - `message`_ | | ||
| Options | - `strict`_ | | ||
| | - `message`_ | | ||
| | - `checkMX`_ | | ||
| | - `checkHost`_ | | ||
+----------------+---------------------------------------------------------------------+ | ||
|
@@ -89,6 +90,15 @@ Basic Usage | |
Options | ||
------- | ||
|
||
strict | ||
~~~~~~~ | ||
|
||
**type**: ``boolean`` **default**: ``false`` | ||
|
||
Will validate the email against a simple RegularExpression. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean: "When false, the email will be validated against a simple Regular Expression" ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. As false is the default value I thought it was clear. |
||
If true, then the `EmailValidator <https://packagist.org/packages/egulias/email-validator>`_ library | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. didn't notice this the first time, you should not put the URL inline. Do this: (also not the change of the text) If true, then the `egulias/email-validator`_ library is required
to perform an RFC compilant validation.
.. at the end of the document
.. _EmailValidator: https://packagist.org/packages/egulias/email-validator |
||
is required to perform an RFC compilant validation. | ||
|
||
message | ||
~~~~~~~ | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the tagline (the line with all those
~
characters) should be even long as the headline (the title). In your case, the tagline is one character longer, which should be removed