Skip to content

Commit 8c51b21

Browse files
committed
minor #15500 Fix example in Regex.rst (nclavaud)
This PR was merged into the 5.2 branch. Discussion ---------- Fix example in Regex.rst Commits ------- 2133943 Fix example in Regex.rst
2 parents c3ec07e + 2133943 commit 8c51b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Regex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ need to specify the HTML5 compatible pattern in the ``htmlPattern`` option:
244244
{
245245
#[Assert\Regex(
246246
pattern: '/^[a-z]+$/i',
247-
match: '^[a-zA-Z]+$'
247+
htmlPattern: '^[a-zA-Z]+$'
248248
)]
249249
protected $name;
250250
}

0 commit comments

Comments
 (0)