repo: janusweb action: commit revision: path_from: revision_from: 5105b8d4da96f95f2135a620d3f337d80454422f: path_to: revision_to:
commit 5105b8d4da96f95f2135a620d3f337d80454422f Author: James BaicoianuDate: Mon Jan 31 16:08:58 2022 -0800 Fixed regex character match escaping in htmlmixed mode diff --git a/media/assets/webui/apps/editor/codemirror/mode/htmlmixed/htmlmixed.js b/media/assets/webui/apps/editor/codemirror/mode/htmlmixed/htmlmixed.js
--- a/media/assets/webui/apps/editor/codemirror/mode/htmlmixed/htmlmixed.js
+++ b/media/assets/webui/apps/editor/codemirror/mode/htmlmixed/htmlmixed.js
@@ -50,7 +50,7 @@
}
function getTagRegexp(tagName, anchored) {
- return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i");
+ return new RegExp((anchored ? "^" : "") + "<\/\\s*" + tagName + "\\s*>", "i");
}
function addTags(from, to) {
-----END OF PAGE-----