fix tput string concatenation.
This commit is contained in:
parent
b8e0fafaeb
commit
3ae01237be
|
@ -617,7 +617,7 @@ Tput.prototype._compile = function(val, key) {
|
|||
}
|
||||
|
||||
function echo(c) {
|
||||
expr('out += (' + c + ')');
|
||||
expr('out += (' + c + ' || "")');
|
||||
}
|
||||
|
||||
function print(c) {
|
||||
|
@ -1002,7 +1002,7 @@ Tput.prototype._compile = function(val, key) {
|
|||
|
||||
// TODO: Make this less ridiculous.
|
||||
// Optimize
|
||||
// ... out += ("foo");return out.join("");
|
||||
// ... out += ("foo");return out;
|
||||
// To:
|
||||
// return "foo";
|
||||
v = code.split(/out = "";out \+= \(|\);return out/);
|
||||
|
|
Loading…
Reference in New Issue