diff --git a/src/View/StringTemplate.php b/src/View/StringTemplate.php index febaedfaed0..6aca4c81990 100644 --- a/src/View/StringTemplate.php +++ b/src/View/StringTemplate.php @@ -178,7 +178,7 @@ protected function _compileTemplates(array $templates = []) $this->_compiled[$name] = [null, null]; } - preg_match_all('#\{\{(\w+)\}\}#', $template, $matches); + preg_match_all('#\{\{([\w\d\._]+)\}\}#', $template, $matches); $this->_compiled[$name] = [ str_replace($matches[0], '%s', $template), $matches[1]