Skip to content

Commit 7454d0c

Browse files
Arknistaabm
authored andcommitted
Entries: Add note about validation behavior change to email method (#47)
Fixes jquery-validation/jquery-validation#2162
1 parent 13f2533 commit 7454d0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entries/email-method.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<longdesc>
66
Return true if the value is a valid email address.
77
<p>Works with text inputs.</p>
8-
<p>In case you need a custom email pattern use the <a href="/jQuery.validator.methods/">$.validator.methods property</a>.</p>
8+
<p><strong>IMPORTANT NOTE:</strong></p>
9+
<p style="font-style: italic;"><strong>As of version <code>1.12.0</code> we started using the same regular expression that the <a href="https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address">HTML5 specification suggests for browsers to use</a>. We will follow their lead and use the same check. In case you need to adjust the built-in validation regular expression patterns, please use the <a href="/jQuery.validator.methods/">$.validator.methods property</a>. If you have different requirements, please consider <a href="/jQuery.validator.addMethod/">using a custom method</a>.</strong></p>
910
</longdesc>
1011
<example>
1112
<desc>Makes "field" required and an email address.</desc>

0 commit comments

Comments
 (0)