diff --git a/public/src/templates.js b/public/src/templates.js index 4d1b3edfbd..e34ac77588 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -103,8 +103,8 @@ if (matches !== null) { for (var i = 0, ii = matches.length; i < ii; i++) { var statement = makeStatementRegex(key), - nestedConditionals = matches[i].match(/\s\s/), - match = matches[i].replace(statement, '').replace(//, ''), + nestedConditionals = matches[i].match(/[\s|\S][\s|\S]/), + match = matches[i].replace(statement, '').replace(/[\s|\S][\s|\S]/, ''), conditionalBlock = match.split(/\s*\s*/); if (conditionalBlock[1]) {