mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 08:31:07 +01:00
Add files via upload
This commit is contained in:
@@ -4878,6 +4878,24 @@ def prepare_ag(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"(^/\^\d{1,3}\\\..*(\\d\{1,3}|\d\]\))\$/$)",
|
||||
r"\1$network",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^([|:/].*([a-z}]|\)))\$/",
|
||||
r"\1\\$/",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^(.*)\$domain=for-txt-dnstype-conversions\.mint$",
|
||||
r"\1$dnstype=TXT",
|
||||
line
|
||||
)
|
||||
|
||||
text += line + '\n'
|
||||
|
||||
return text
|
||||
@@ -6258,6 +6276,12 @@ def prepare_agh(lines) -> str:
|
||||
# remove or modifiy entries with unsupported modifiers
|
||||
for line in lines:
|
||||
|
||||
line = re.sub(
|
||||
r"^(.*)\$domain=for-txt-dnstype-conversions\.mint$",
|
||||
r"\1$dnstype=TXT",
|
||||
line
|
||||
)
|
||||
|
||||
# Doesn't seem like $denyallow will be fixed in HostfilesRegistry anytime soon as of March 2023
|
||||
line = re.sub(
|
||||
r"^(\||:)(.*)\$doc,domain=(.*)",
|
||||
|
||||
Reference in New Issue
Block a user