From db15323a403d28f46533540b4b02de9501c71988 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Thu, 17 Nov 2022 23:30:03 +0100 Subject: [PATCH] [Validator] Add pattern in Regex constraint violations --- reference/constraints/Regex.rst | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/reference/constraints/Regex.rst b/reference/constraints/Regex.rst index 6f94c5c151e..7ae66428670 100644 --- a/reference/constraints/Regex.rst +++ b/reference/constraints/Regex.rst @@ -258,12 +258,17 @@ This is the message that will be shown if this validator fails. You can use the following parameters in this message: -=============== ============================================================== -Parameter Description -=============== ============================================================== -``{{ value }}`` The current (invalid) value -``{{ label }}`` Corresponding form field label -=============== ============================================================== +================= ============================================================== +Parameter Description +================= ============================================================== +``{{ value }}`` The current (invalid) value +``{{ label }}`` Corresponding form field label +``{{ pattern }}`` The expected matching pattern +================= ============================================================== + +.. versionadded:: 6.3 + + The ``{{ pattern }}`` parameter was introduced in 6.3. ``pattern`` ~~~~~~~~~~~