Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f68a326

Browse files
committed
clarify how to disable client-side validation using the Regex constraint
1 parent b95af81 commit f68a326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Options
193193
``htmlPattern``
194194
~~~~~~~~~~~~~~~
195195

196-
**type**: ``string|boolean`` **default**: ``null``
196+
**type**: ``string|null`` **default**: ``null``
197197

198198
This option specifies the pattern to use in the HTML5 ``pattern`` attribute.
199199
You usually don't need to specify this option because by default, the constraint
@@ -289,7 +289,7 @@ need to specify the HTML5 compatible pattern in the ``htmlPattern`` option:
289289
}
290290
}
291291
292-
Setting ``htmlPattern`` to false will disable client side validation.
292+
Setting ``htmlPattern`` to the empty string will disable client side validation.
293293

294294
``match``
295295
~~~~~~~~~

0 commit comments

Comments
 (0)