Node.js based forum software built for the modern web
latest templates.js, gotta switch to the version on npm soon
psychobunny21a4651a640f
diff --git a/public/src/templates.js b/public/src/templates.jsindex 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<!-- IF[\s\S]*ENDIF[\s\S]*-->\s/),- match = matches[i].replace(statement, '').replace(/<!-- IF[\s\S]*ENDIF[\s\S]*-->/, '<!-- NESTED -->'),+ nestedConditionals = matches[i].match(/[\s|\S]<!-- IF[\s\S]*ENDIF[\s\S]*-->[\s|\S]/),+ match = matches[i].replace(statement, '').replace(/[\s|\S]<!-- IF[\s\S]*ENDIF[\s\S]*-->[\s|\S]/, '<!-- NESTED -->'),conditionalBlock = match.split(/\s*<!-- ELSE -->\s*/);if (conditionalBlock[1]) {