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:
parent
0dd771351d
commit
8a4128defb
@ -68,7 +68,7 @@ module.exports = function(RED) {
|
|||||||
node.error(err,msg);
|
node.error(err,msg);
|
||||||
return done();
|
return done();
|
||||||
} else {
|
} else {
|
||||||
if (value) {
|
if (typeof value !== 'string' && value !== null && value !== undefined) {
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
}
|
}
|
||||||
processMsg2(msg,nodeSend,value,done);
|
processMsg2(msg,nodeSend,value,done);
|
||||||
@ -316,7 +316,7 @@ module.exports = function(RED) {
|
|||||||
node.error(err,msg);
|
node.error(err,msg);
|
||||||
return done();
|
return done();
|
||||||
} else {
|
} else {
|
||||||
if (value) {
|
if (typeof value !== 'string' && value !== null && value !== undefined) {
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
}
|
}
|
||||||
processMsg2(msg, nodeSend, (value || "").replace(/\t|\r|\n/g,''), nodeDone);
|
processMsg2(msg, nodeSend, (value || "").replace(/\t|\r|\n/g,''), nodeDone);
|
||||||
|
Loading…
Reference in New Issue
Block a user