catch tiny possible escape for "\n " in exec command node label.

This commit is contained in:
Dave Conway-Jones 2020-06-22 22:41:22 +01:00
parent b72ca439e2
commit 5596d2df8e
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@
},
icon: "cog.svg",
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() {
return this.name?"node_label_italic":"";