From e39ebaac230a5e3adff4a2b21ef9cb54c3396ffa Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 29 Nov 2021 09:23:08 +0100 Subject: [PATCH] Fixed Regex codesmell --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 4212cf4..3726245 100644 --- a/src/main.js +++ b/src/main.js @@ -62,7 +62,7 @@ if(errorMsg){ logger.debug("Creating & Attaching streams.."); proc.stdout .setEncoding("utf8") - .pipe(new RegexBlockStream(/^[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6}.*(\n( {4,8}|\t\t?).*){1,}\n/gm)) + .pipe(new RegexBlockStream(/^\d{2}:\d{2}:\d{2}.\d{6}.*(\n( {4,8}|\t\t?).*)+\n/gm)) .pipe(new PacketStreamFactory()) .pipe(new PacketInfluxPointFactory()) .pipe(new InfluxPointWriter(influxDb, env.INFLUX_ORG, env.INFLUX_BUCKET));