Skip to content

Node.js based forum software built for the modern web

imported latest templates.js

psychobunny5ce069fdd349
diff --git a/public/src/templates.js b/public/src/templates.js
index 4926392974..847941c87f 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -75,7 +75,7 @@
}
function makeRegex(block) {
- return new RegExp("<!--[\\s]*BEGIN " + block + "[\\s]*-->[\\s\\S]*<!--[\\s]*END " + block + "[\\s]*-->", 'g');
+ return new RegExp("<!--[\\s]*BEGIN " + block + "[\\s]*-->[\\s\\S]*?<!--[\\s]*END " + block + "[\\s]*-->", 'g');
}
function makeConditionalRegex(block) {