Update capa/rules.py

Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
This commit is contained in:
Willi Ballenthin
2021-11-12 11:51:39 -07:00
committed by GitHub
parent cdfacc6247
commit 9b5e8ff45d

View File

@@ -998,7 +998,7 @@ class RuleSet:
@staticmethod
def _index_rules_by_feature(rules) -> Tuple[Dict[Feature, Set[str]], List[str]]:
"""
split the given rules into to structures:
split the given rules into two structures:
- "easy rules" are indexed by feature,
such that you can quickly find the rules that contain a given feature.
- "hard rules" are those that contain substring/regex/bytes features or match statements.