mirror of
https://github.com/TG-Twilight/AWAvenue-Ads-Rule.git
synced 2025-11-04 14:49:47 +08:00
12 lines
343 B
Python
12 lines
343 B
Python
def format_domain(domain_file):
|
|
domain = []
|
|
with open(domain_file, 'r') as file:
|
|
lines = file.readlines()
|
|
for line in lines:
|
|
domain_lines = f".{line.strip()}"
|
|
domain.append(domain_lines)
|
|
return domain
|
|
|
|
def build(domain_file, regex_file):
|
|
surge_list = format_domain(domain_file)
|
|
return surge_list |