mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 11:51:07 +01:00
Add files via upload
This commit is contained in:
@@ -5110,6 +5110,12 @@ def prepare_hosts(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^127\.0\.0\.1 [a-z0-9-]{1,}\$.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_hosts(line):
|
||||
text += line + '\r\n'
|
||||
|
||||
@@ -5250,6 +5256,12 @@ def prepare_domains(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^[a-z0-9-]{1,}\$.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_domains(line):
|
||||
text += line + '\r\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user