1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Fix HTML element parser to not pass capturing parenthesis in terminating regexp

This commit is contained in:
Jeremy Ruston 2013-04-04 14:24:21 +01:00
parent 02e0b1059e
commit 4bcebf5bbf

View File

@ -70,8 +70,8 @@ exports.parse = function() {
}
// Process the end tag
if(!isSelfClosing && $tw.config.htmlVoidElements.indexOf(tagName) === -1) {
var reEndString = "(</" + $tw.utils.escapeRegExp(tagName) + ">)",
reEnd = new RegExp(reEndString,"mg"),
var reEndString = "</" + $tw.utils.escapeRegExp(tagName) + ">",
reEnd = new RegExp("(" + reEndString + ")","mg"),
content;
if(hasLineBreak) {
content = this.parser.parseBlocks(reEndString);