Skip to content

Commit 2133943

Browse files
authored
Fix example in Regex.rst
1 parent c3ec07e commit 2133943

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)