From 21a4651a640f1e23fa81d5a7884b8461db91ebab Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 8 Apr 2014 16:45:17 -0400 Subject: [PATCH] latest templates.js, gotta switch to the version on npm soon --- public/src/templates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) {