mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-11 03:25:45 +00:00
Revert "another way of escape curly braces in tags. see #51."
This reverts commit 434bddcfc708a82b0d5570629da13bd879fb28d5.
This commit is contained in:
parent
434bddcfc7
commit
8ccc3dbc49
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user