From 8ccc3dbc49720bee85076f6424c20b11135df508 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 26 Apr 2014 00:33:05 -0500 Subject: [PATCH] Revert "another way of escape curly braces in tags. see #51." This reverts commit 434bddcfc708a82b0d5570629da13bd879fb28d5. --- lib/widget.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) 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;