Skip to content

Commit

Permalink
Merge pull request #1045 from yql70/main
Browse files Browse the repository at this point in the history
🎨updat comment
  • Loading branch information
cyw3 authored Mar 29, 2024
2 parents f75edd2 + 8d64cf2 commit 51d7b0c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/tool/regexscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def __format_rules(self, work_dir, rule_list):
rule_name = rule['name']
if not rule.get('params'):
logger.error(f"{rule_name} rule parameter is empty, check for existing rules.")
# 没有参数的规则,可能为工具内部隐藏规则
rules["rules"].append({"name":rule_name})
no_params_rules.append(rule_name)
continue
Expand All @@ -103,7 +102,6 @@ def __format_rules(self, work_dir, rule_list):
regex = rule_params_dict.get("regex", "")
regex_not = rule_params_dict.get("regex_not", "")
if not regex:
# 没有正则的规则,可能为工具内部隐藏规则
rules["rules"].append({"name":rule_name})
continue
regexes = self.__get_regexes_exp("regex", rule_params_dict)
Expand Down

0 comments on commit 51d7b0c

Please sign in to comment.