diff --git a/app/parsers/template-parser.inc.php b/app/parsers/template-parser.inc.php index 0431f36d..c6378232 100644 --- a/app/parsers/template-parser.inc.php +++ b/app/parsers/template-parser.inc.php @@ -103,7 +103,7 @@ static function parse_includes($data, $template) { ###### TODO: There is no protection against endless loops due to circular inclusions # split out the partial into the parts Before, Inside, and After the :include - preg_match('/([\S\s]*?)\s:([\w\d_]+?)(\.html)?\b([\S\s]*)$/', $template, $template_parts); + preg_match('/([\S\s]*?)\s:([\w\d_-]+?)(\.html)?\s([\S\s]*)$/', $template, $template_parts); # run the replacements on the pre-":include" part of the partial $template = self::parse($data, $template_parts[1]);