diff --git a/util/regexp-assemble/lib/operators/parser.py b/util/regexp-assemble/lib/operators/parser.py index cf028559c..431c0b1ac 100644 --- a/util/regexp-assemble/lib/operators/parser.py +++ b/util/regexp-assemble/lib/operators/parser.py @@ -29,7 +29,7 @@ def perform_compare_or_update(self, process_all: bool, func=None): rule_id = self.context.single_rule_id chain_offset = self.context.single_chain_offset - if rule_id in file and ('chain' not in file.name or f'chain{chain_offset}' in file.name): + if rule_id in file.name and ('chain' not in file.name or f'chain{chain_offset}' in file.name): self.process_regex( rule_id, chain_offset,