Skip to content

Commit

Permalink
feat: reduce duplicate mapToExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiar committed Aug 9, 2023
1 parent 776b8cb commit cc2a87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gliwka/hyperscan/util/PatternFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public PatternFilter(List<Pattern> patterns) throws CompileErrorException {
notFilterable.add(pattern.matcher(""));
}
else {
expressions.add(mapToExpression(pattern, id));
expressions.add(expression);
matchers[id] = pattern.matcher("");
id++;
}
Expand Down

0 comments on commit cc2a87b

Please sign in to comment.