mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 22:04:30 +01:00
Add files via upload
This commit is contained in:
@@ -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