Fixed args being wrong way around

This commit is contained in:
Ruakij 2021-11-24 19:40:46 +01:00
parent d11aac5599
commit 4f1463eb4f

View File

@ -32,7 +32,7 @@ class RegexBlockStream extends Transform{
let matches = chunk.match(this.matcher); // Match
if(matches){
if(this.withholdLastBlock) matches.pop(); // Remove last if we want to withhold it
chunk = this._writeMatches(chunk, matches);
chunk = this._writeMatches(matches, chunk);
}
this._buffer = chunk; // Store remaining data in buffer