Skip to content

Commit

Permalink
Daemon node - catch tiny possible escape with "\n " in command as label
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Jun 22, 2020
1 parent 98d5df9 commit 41d9f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utility/daemon/daemon.html
Expand Up @@ -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":"";
Expand Down
2 changes: 1 addition & 1 deletion utility/daemon/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-daemon",
"version" : "0.1.0",
"version" : "0.1.2",
"description" : "A Node-RED node that runs and monitors a long running system command.",
"dependencies" : {
},
Expand Down

0 comments on commit 41d9f18

Please sign in to comment.