mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-09-24 21:30:19 +01:00
Add files via upload
This commit is contained in:
@@ -6111,6 +6111,12 @@ def prepare_hosts(lines) -> str:
|
||||
# remove or modifiy entries with unsupported modifiers
|
||||
for line in lines:
|
||||
|
||||
line = re.sub(
|
||||
r"^.*domain=[a-z0-9].*$",
|
||||
"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^(\|.*\.)(\$.*)?$",
|
||||
r"\1com^\2",
|
||||
@@ -6395,6 +6401,12 @@ def prepare_domains(lines) -> str:
|
||||
# remove or modifiy entries with unsupported modifiers
|
||||
for line in lines:
|
||||
|
||||
line = re.sub(
|
||||
r"^.*domain=[a-z0-9].*$",
|
||||
"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^(\|.*\.)(\$.*)?$",
|
||||
r"\1com^\2",
|
||||
|
||||
Reference in New Issue
Block a user