mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
⚡️ 更新 autobuild 檔案名稱規則
This commit is contained in:
parent
6f743ff0cc
commit
eb1429feba
@ -83,7 +83,7 @@ for category in filterlist:
|
||||
def to_pure_domain(filename: str, data: str):
|
||||
data = data.splitlines()
|
||||
newdata = '\n'.join(data)
|
||||
name = filename.split('.txt')[0]
|
||||
name = filename.split('.txt')[0].split('_')[0]
|
||||
with open(name+'_domains.txt', 'w') as output:
|
||||
pattern = r'(?<=^\|\|)\S+\.\S{2,}(?=\^)'
|
||||
newoutput = '\n'.join(re.findall(pattern, newdata, re.MULTILINE))
|
||||
|
Loading…
x
Reference in New Issue
Block a user