mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/twig] Fix length replace in lexer
PHPBB3-11598
This commit is contained in:
parent
1a58d188aa
commit
943728d3ef
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class phpbb_template_twig_lexer extends Twig_Lexer
|
||||||
$matches[1] = preg_replace('#\s\$([a-zA-Z_0-9]+)#', ' definition.$1', $matches[1]);
|
$matches[1] = preg_replace('#\s\$([a-zA-Z_0-9]+)#', ' definition.$1', $matches[1]);
|
||||||
|
|
||||||
// Replace .test with test|length
|
// Replace .test with test|length
|
||||||
$matches[1] = preg_replace('#\s\.([a-zA-Z_0-9]+)#', ' $1|length', $matches[1]);
|
$matches[1] = preg_replace('#\s\.([a-zA-Z_0-9\.]+)#', ' $1|length', $matches[1]);
|
||||||
|
|
||||||
return '<!-- IF' . $matches[1] . '-->';
|
return '<!-- IF' . $matches[1] . '-->';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue