From 9472ed9198b15cc4a1063238d64440da98439745 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 25 Nov 2021 18:42:26 +0100 Subject: [PATCH] Fix wrong usage of join() Default splitter is ',' but we want nothing --- src/streamHandler/RegexBlockStream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamHandler/RegexBlockStream.js b/src/streamHandler/RegexBlockStream.js index 8a713c4..5868319 100644 --- a/src/streamHandler/RegexBlockStream.js +++ b/src/streamHandler/RegexBlockStream.js @@ -27,7 +27,7 @@ class RegexBlockStream extends Transform{ } _transform(chunk, encoding, next){ - chunk = this.readableBuffer.length? this.readableBuffer.join() + chunk: chunk; // Add previous buffer to current chunk + chunk = this.readableBuffer.length? this.readableBuffer.join('') + chunk: chunk; // Add previous buffer to current chunk this.readableBuffer.length && this.readableBuffer.clear(); // Clear buffer once we read it let matches = chunk.match(this.matcher); // Match