Fixed Regex codesmell

code-smell_handling
Ruakij 3 years ago
parent 54d627d469
commit e39ebaac23

@ -62,7 +62,7 @@ if(errorMsg){
logger.debug("Creating & Attaching streams.."); logger.debug("Creating & Attaching streams..");
proc.stdout proc.stdout
.setEncoding("utf8") .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 PacketStreamFactory())
.pipe(new PacketInfluxPointFactory()) .pipe(new PacketInfluxPointFactory())
.pipe(new InfluxPointWriter(influxDb, env.INFLUX_ORG, env.INFLUX_BUCKET)); .pipe(new InfluxPointWriter(influxDb, env.INFLUX_ORG, env.INFLUX_BUCKET));

Loading…
Cancel
Save