diff --git a/src/psm/Service/Template.class.php b/src/psm/Service/Template.class.php index 86d51e45..7fe9c6f1 100755 --- a/src/psm/Service/Template.class.php +++ b/src/psm/Service/Template.class.php @@ -154,7 +154,7 @@ class Template { $result = preg_replace('{(.*?)}is', '', $this->templates[$id]); // check for tpl variables that have not been replaced. ie: {name}. ignore literal stuff, though. ie: {{name}} is {name} and should not be removed - preg_match_all('~{?{(.+?)}}?~', $result, $matches); + preg_match_all('~{?{(\w+?)}}?~', $result, $matches); foreach($matches[0] as $match) { if (substr($match, 0, 2) == '{{') {