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:
parent
cae247160f
commit
e5f1029d0c
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user