Revert "another way of escape curly braces in tags. see #51."

This reverts commit 434bddcfc7.
This commit is contained in:
Christopher Jeffrey 2014-04-26 00:33:05 -05:00
parent 434bddcfc7
commit 8ccc3dbc49
1 changed files with 2 additions and 14 deletions

View File

@ -2028,19 +2028,7 @@ Element.prototype._parseTags = function(text) {
, attr; , attr;
for (;;) { for (;;) {
if (cap = /^{{/.exec(text)) { if (cap = /^{(\/?)([\w\-,;!#]*)}/.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)) {
text = text.substring(cap[0].length); text = text.substring(cap[0].length);
slash = cap[1] === '/'; slash = cap[1] === '/';
param = cap[2].replace(/-/g, ' '); param = cap[2].replace(/-/g, ' ');
@ -2088,7 +2076,7 @@ Element.prototype._parseTags = function(text) {
continue; continue;
} }
if (cap = /^[\s\S]+?(?={\/?[\w\-,;!#]*}(?!}(?!})))/.exec(text)) { if (cap = /^[\s\S]+?(?={\/?[\w\-,;!#]*})/.exec(text)) {
text = text.substring(cap[0].length); text = text.substring(cap[0].length);
out += cap[0]; out += cap[0];
continue; continue;