mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-04 18:07:08 +01:00
Add files via upload
This commit is contained in:
@@ -5239,6 +5239,24 @@ def prepare_agh(lines) -> str:
|
||||
# remove or modifiy entries with unsupported modifiers
|
||||
for line in lines:
|
||||
|
||||
line = re.sub(
|
||||
r"\$doc,domain=(.*)",
|
||||
r"$denyallow=\1",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\$denyallow=~",
|
||||
r"$denyallow=",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\|~",
|
||||
r"|",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
"\$doc,",
|
||||
"",
|
||||
@@ -5275,24 +5293,12 @@ def prepare_agh(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"~(.*?)\|",
|
||||
r"\n@@||\1^",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"~ Warning.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\$doc,domain=.*",
|
||||
"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\^\$$",
|
||||
"^",
|
||||
@@ -5323,12 +5329,6 @@ def prepare_agh(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"@@.*pokeacer\.tk\^",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\|\|(([1-2]?[0-9]?[0-9]\.?){4})\^.*",
|
||||
r"\1",
|
||||
|
||||
Reference in New Issue
Block a user