diff --git a/lib/widget.js b/lib/widget.js index c06a32f..5b178aa 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -2028,19 +2028,7 @@ Element.prototype._parseTags = function(text) { , attr; for (;;) { - if (cap = /^{{/.exec(text)) { - text = text.substring(cap[0].length); - out += '{'; - continue; - } - - if (cap = /^}}/.exec(text)) { - text = text.substring(cap[0].length); - out += '}'; - continue; - } - - if (cap = /^{(\/?)([\w\-,;!#]*)}(?!}(?!}))/.exec(text)) { + if (cap = /^{(\/?)([\w\-,;!#]*)}/.exec(text)) { text = text.substring(cap[0].length); slash = cap[1] === '/'; param = cap[2].replace(/-/g, ' '); @@ -2088,7 +2076,7 @@ Element.prototype._parseTags = function(text) { continue; } - if (cap = /^[\s\S]+?(?={\/?[\w\-,;!#]*}(?!}(?!})))/.exec(text)) { + if (cap = /^[\s\S]+?(?={\/?[\w\-,;!#]*})/.exec(text)) { text = text.substring(cap[0].length); out += cap[0]; continue;