Skip to content

Node.js based forum software built for the modern web

reverting previous template fix

psychobunny0c54afe5761c
diff --git a/public/src/templates.js b/public/src/templates.js
index 0018b1e974..e4dbb0f69a 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -281,7 +281,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) {