* regex for simple placeholders
* @var string
*/
- protected $regexHandlers = '~{{\ ((?:[a-z][a-zA-Z]+="(?:\\"|[^"])+?"\ ?)*)\ }}~';
+ protected $regexHandlers = '~\{\{ ((?:[a-z][a-zA-Z]+="(?:\\\\"|[^"])+" ?)*) \}\}~';
/**
* @inheritDoc
foreach ($matches[1] as $attributesString) {
$attributes = $this->parseAttributes($attributesString);
$handler = $attributes['handler'];
-
if (!isset($this->handlers[$handler])) {
// unknown handler, ignore
continue;
*/
protected function parseAttributes($attributesString)
{
- \preg_match_all('~([a-z][a-zA-Z]+)="((?:\\\\"|[^"])+?)"~', $attributesString, $attributes);
+ \preg_match_all('~([a-z][a-zA-Z]+)="((?:\\\\"|[^"])+)"~', $attributesString, $attributes);
$additionalAttributes = [];
for ($i = 1, $length = \count($attributes[0]); $i < $length; $i++) {