allow to use array syntax in string builder filter

This commit is contained in:
Simon Vieille 2023-08-08 14:18:10 +02:00
parent 8e0a7f178b
commit 0ab960ed0a
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -34,7 +34,7 @@ class StringBuilder
return $format;
}
preg_match_all('/\{([a-zA-Z0-9\._]+)\}/i', $format, $matches, PREG_SET_ORDER);
preg_match_all('/\{([a-zA-Z0-9\._\[\]]+)\}/i', $format, $matches, PREG_SET_ORDER);
foreach ($matches as $match) {
$propertyValue = $this->propertyAccessor->getValue($object, $match[1]);