aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-01 14:58:20 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-01 14:58:20 -0500
commit943728d3eff5b14b8936ccacf00dd729c9ac1d40 (patch)
tree96f2895cf796777621a216e220cc693d5573149a
parent1a58d188aab0c22965732621c8d93a00ea7a747e (diff)
downloadforums-943728d3eff5b14b8936ccacf00dd729c9ac1d40.tar
forums-943728d3eff5b14b8936ccacf00dd729c9ac1d40.tar.gz
forums-943728d3eff5b14b8936ccacf00dd729c9ac1d40.tar.bz2
forums-943728d3eff5b14b8936ccacf00dd729c9ac1d40.tar.xz
forums-943728d3eff5b14b8936ccacf00dd729c9ac1d40.zip
[feature/twig] Fix length replace in lexer
PHPBB3-11598
-rw-r--r--phpBB/includes/template/twig/lexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template/twig/lexer.php b/phpBB/includes/template/twig/lexer.php
index d9cc6f60ce..b32a9e4ffa 100644
--- a/phpBB/includes/template/twig/lexer.php
+++ b/phpBB/includes/template/twig/lexer.php
@@ -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]);
// 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] . '-->';
};