8000 [Validator] Add pattern in Regex constraint violations · symfony/symfony-docs@db15323 · GitHub
[go: up one dir, main page]

Skip to content

Commit db15323

Browse files
committed
[Validator] Add pattern in Regex constraint violations
1 parent 65f10ac commit db15323

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

reference/constraints/Regex.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,17 @@ This is the message that will be shown if this validator fails.
258258

259259
You can use the following parameters in this message:
260260

261-
=============== ==============================================================
262-
Parameter Description
263-
=============== ==============================================================
264-
``{{ value }}`` The current (invalid) value
265-
``{{ label }}`` Corresponding form field label
266-
=============== ==============================================================
261+
================= ==============================================================
262+
Parameter Description
263+
================= ==============================================================
264+
``{{ value }}`` The current (invalid) value
265+
``{{ label }}`` Corresponding form field label
266+
``{{ pattern }}`` The expected matching pattern
267+
================= ==============================================================
268+
269+
.. versionadded:: 6.3
270+
271+
The ``{{ pattern }}`` parameter was introduced in 6.3.
267272

268273
``pattern``
269274
~~~~~~~~~~~

0 commit comments

Comments
 (0)
0