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

fix variable names for test

This commit is contained in:
Dave Conway-Jones 2021-12-26 15:37:41 +00:00
parent cae247160f
commit e5f1029d0c
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

View File

@ -650,9 +650,9 @@ module.exports = function(RED) {
if (node.newline && node.newline !== "" ) {
chunk += msg.payload.toString();
let parts = chunk.split(node.newline);
for (var i=0; i<parts.length-1; i+=1) {
for (var p=0; p<parts.length-1; p+=1) {
let m = RED.util.cloneMessage(msg);
m.payload = parts[i] + node.newline.trimEnd();
m.payload = parts[p] + node.newline.trimEnd();
nodeSend(m);
}
chunk = parts[parts.length-1];