mirror of https://github.com/node-red/node-red.git
catch tiny possible escape for "\n " in exec command node label.
parent
b72ca439e2
commit
5596d2df8e
|
@ -70,7 +70,7 @@
|
||||||
},
|
},
|
||||||
icon: "cog.svg",
|
icon: "cog.svg",
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name||this.command||(this.useSpawn=="true"?this._("exec.spawn"):this._("exec.exec"));
|
return this.name||this.command.replace(/\\n /g,"\\\\n ")||(this.useSpawn=="true"?this._("exec.spawn"):this._("exec.exec"));
|
||||||
},
|
},
|
||||||
labelStyle: function() {
|
labelStyle: function() {
|
||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
|
|
Loading…
Reference in New Issue