From 9a9ed1af034a1be7c7f9f6f5734626cbd558fa4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Fri, 23 Feb 2024 23:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20=E5=88=AA=E9=99=A4=E8=88=8A?= =?UTF-8?q?=E7=A8=8B=E5=BC=8F=E7=A2=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/pure_domain.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 AutoBuild/pure_domain.py diff --git a/AutoBuild/pure_domain.py b/AutoBuild/pure_domain.py deleted file mode 100644 index ee95184..0000000 --- a/AutoBuild/pure_domain.py +++ /dev/null @@ -1,11 +0,0 @@ -import re - -with open('../hosts_adb.txt', 'r') as files: - data = files.read().splitlines() - newdata = '\n'.join(data[5:]) - desc = '\n'.join(x.replace('!', '#') for x in data[:5]) + '\n' - - with open('../domains_adb.txt', 'w') as output: - pattern = r'(?<=^\|\|)\S+\.\S{2,}(?=\^)' - desc += '\n'.join(re.findall(pattern, newdata, re.MULTILINE)) - output.write(desc)