Skip to content

Commit 934021d

Browse files
committed
minor #20089 [Validator] clarify how to disable client-side validation using the Regex constraint (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Validator] clarify how to disable client-side validation using the Regex constraint fixes symfony/symfony#53807 Commits ------- f68a326 clarify how to disable client-side validation using the Regex constraint
2 parents b95af81 + f68a326 commit 934021d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Regex.rst

+2-2
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)