AWAvenue-Ads-Rule/script/Surge.py
Elysia 91e7c9817f
Some checks are pending
build Rule / execute_python_script (push) Waiting to run
新增domain_suffix和domain_keyword匹配&删除singbox-regex.py
2025-08-02 20:35:17 +08:00

10 lines
334 B
Python
Executable File

def format_domain(List):
domain = []
for line in List:
domain_lines = f".{line.strip()}"
domain.append(domain_lines)
return domain
def build(rule):
list = format_domain(rule.domain_list) + format_domain(rule.suffix_list)
return {'list': list, 'suffix': '.list', 'comment': '#', 'total': len(list)}