From 88df03a81b2c96da24f2f533b4a52742c512ca10 Mon Sep 17 00:00:00 2001 From: Max Leske Date: Mon, 23 May 2022 20:01:45 +0200 Subject: [PATCH] fix(regexp-assemble): Use correct object in conditional --- util/regexp-assemble/lib/operators/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,