Changed documentation to remarks section
This commit is contained in:
parent
450f162cda
commit
cf1b300f6a
@ -10,9 +10,10 @@ class RegexBlockStream extends Transform{
|
|||||||
matchAllOnFlush;
|
matchAllOnFlush;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {RegExp} matcher Block-match - WARNING: It should match a clean-block (including e.g. newline)! Otherwise buffer will get dirty and use more and more ressources.
|
* @param {RegExp} matcher Block-match
|
||||||
* @param {boolean} withholdLastBlock When true, the last matches block will not be submitted to prevent submitting incomplete blocks.
|
* @param {boolean} withholdLastBlock When true, the last matches block will not be submitted to prevent submitting incomplete blocks.
|
||||||
* @param {boolean} matchAllOnFlush (Only in combination with withholdLastBlock) When enabled, the buffer will be matched on last time on _flush (stream deconstruction) and write any, also incomplete, blocks
|
* @param {boolean} matchAllOnFlush (Only in combination with withholdLastBlock) When enabled, the buffer will be matched on last time on _flush (stream deconstruction) and write any, also incomplete, blocks
|
||||||
|
* @remarks WARNING: It should match a clean-block (including e.g. newline)! Otherwise buffer will get dirty and use more and more ressources.
|
||||||
*/
|
*/
|
||||||
constructor(matcher, withholdLastBlock = true, matchAllOnFlush = false){
|
constructor(matcher, withholdLastBlock = true, matchAllOnFlush = false){
|
||||||
super({
|
super({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user