mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 10:31:06 +01:00
Add files via upload
This commit is contained in:
@@ -612,6 +612,18 @@ def prepare_agh(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\^,~",
|
||||
r"^$~",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\.,badfilter$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_agh(line) and not line == '':
|
||||
text += line + '\r\n'
|
||||
|
||||
@@ -1487,7 +1499,19 @@ def prepare_agh(lines) -> str:
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^/.*[_?=/;~@%#+].*",
|
||||
r"^/.*[_?=/;~@%#+,].*",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\^,~",
|
||||
r"^$~",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"\.,badfilter$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user