mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-02-27 01:50:44 +00:00
simple way of escaping curly braces in tags for now. fixes #51.
This commit is contained in:
parent
8ccc3dbc49
commit
9a9611636a
@ -2033,6 +2033,14 @@ Element.prototype._parseTags = function(text) {
|
||||
slash = cap[1] === '/';
|
||||
param = cap[2].replace(/-/g, ' ');
|
||||
|
||||
if (param === 'open') {
|
||||
out += '{';
|
||||
continue;
|
||||
} else if (param === 'close') {
|
||||
out += '}';
|
||||
continue;
|
||||
}
|
||||
|
||||
if (param.slice(-3) === ' bg') state = bg;
|
||||
else if (param.slice(-3) === ' fg') state = fg;
|
||||
else state = flag;
|
||||
|
Loading…
x
Reference in New Issue
Block a user