mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-11-24 19:52:56 +00:00
Add files via upload
This commit is contained in:
1 parent
f86cc57e80
commit
37d678aadd
1 file changed
+36
@@ -5975,6 +5975,42 @@ def prepare_agh(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^.*/script,subdocument,image$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^\?.*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^[:/|].*=$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r".*\^\$[a-z-]{1,}[.|].*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\.denyallow=",
|
||||
r".$denyallow=",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"(denyallow=.*),",
|
||||
r"\1|",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_agh(line):
|
||||
text += line + '\n'
|
||||
|
||||
|
||||
Reference in new issue
Block a user