--- a/src/scanner.c Thu Jun 01 17:33:34 2017 +0200
+++ b/src/scanner.c Mon Mar 19 16:36:14 2018 +0100
@@ -163,6 +163,7 @@
lines = 0;
bfile = false;
bfile_reset(settings->bfileHeuristics);
+ regex_parser_reset(settings->regex);
char line_buffer[REGEX_MAX_LINELENGTH];
int line_buffer_offset = 0;