mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Daemon node - catch tiny possible escape with "\n " in command as label
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
outputLabels: ["stdout","stderr","exit code"],
|
||||
icon: "arrow-in.png",
|
||||
label: function() {
|
||||
return this.name||this.command||"daemon";
|
||||
return this.name||this.command.replace(/\\n /g,"\\\\n ")||"daemon";
|
||||
},
|
||||
labelStyle: function() {
|
||||
return this.name?"node_label_italic":"";
|
||||
|
Reference in New Issue
Block a user