Skip to content

Commit

Permalink
fix typo: replace 'rules' with 'rule'
Browse files Browse the repository at this point in the history
  • Loading branch information
yelhamer committed Jul 12, 2023
1 parent 53d897d commit 9c87845
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions capa/ida/plugin/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,11 +1210,11 @@ def update_rule_status(self, rule_text: str):

if capa.rules.Scope.FUNCTION in rule.scopes and rule.name in func_matches.keys():
is_match = True
elif capa.rules.Scope.BASIC_BLOCK in rules.scopes and rule.name in bb_matches.keys():
elif capa.rules.Scope.BASIC_BLOCK in rule.scopes and rule.name in bb_matches.keys():
is_match = True
elif capa.rules.Scope.INSTRUCTION in rules.scopes and rule.name in insn_matches.keys():
elif capa.rules.Scope.INSTRUCTION in rule.scopes and rule.name in insn_matches.keys():
is_match = True
elif capa.rules.Scope.FILE in rules.scopes:
elif capa.rules.Scope.FILE in rule.scopes:
try:
_, file_matches = self.rulegen_feature_cache.find_file_capabilities(ruleset)
except Exception as e:
Expand Down

0 comments on commit 9c87845

Please sign in to comment.