diff --git a/client/tool/regexscanner.py b/client/tool/regexscanner.py index 10cf7d9bc..1763a8315 100644 --- a/client/tool/regexscanner.py +++ b/client/tool/regexscanner.py @@ -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 @@ -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)