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

Fix handling in file nodes when 0 is specified as file name

This commit is contained in:
Kazuhito Yokoi 2023-08-14 19:53:00 +09:00
parent 0dd771351d
commit 8a4128defb

View File

@ -68,7 +68,7 @@ module.exports = function(RED) {
node.error(err,msg);
return done();
} else {
if (value) {
if (typeof value !== 'string' && value !== null && value !== undefined) {
value = value.toString();
}
processMsg2(msg,nodeSend,value,done);
@ -316,7 +316,7 @@ module.exports = function(RED) {
node.error(err,msg);
return done();
} else {
if (value) {
if (typeof value !== 'string' && value !== null && value !== undefined) {
value = value.toString();
}
processMsg2(msg, nodeSend, (value || "").replace(/\t|\r|\n/g,''), nodeDone);