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:
parent
02e0b1059e
commit
4bcebf5bbf
@ -70,8 +70,8 @@ exports.parse = function() {
|
|||||||
}
|
}
|
||||||
// Process the end tag
|
// Process the end tag
|
||||||
if(!isSelfClosing && $tw.config.htmlVoidElements.indexOf(tagName) === -1) {
|
if(!isSelfClosing && $tw.config.htmlVoidElements.indexOf(tagName) === -1) {
|
||||||
var reEndString = "(</" + $tw.utils.escapeRegExp(tagName) + ">)",
|
var reEndString = "</" + $tw.utils.escapeRegExp(tagName) + ">",
|
||||||
reEnd = new RegExp(reEndString,"mg"),
|
reEnd = new RegExp("(" + reEndString + ")","mg"),
|
||||||
content;
|
content;
|
||||||
if(hasLineBreak) {
|
if(hasLineBreak) {
|
||||||
content = this.parser.parseBlocks(reEndString);
|
content = this.parser.parseBlocks(reEndString);
|
||||||
|
Loading…
Reference in New Issue
Block a user