1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Daemon node - catch tiny possible escape with "\n " in command as label

This commit is contained in:
Dave Conway-Jones 2020-06-22 22:45:34 +01:00
parent 98d5df965c
commit 41d9f18608
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
2 changed files with 2 additions and 2 deletions

View File

@ -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":"";

View File

@ -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" : {
},