mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-09-24 22:03:36 +01:00
Part 1/? for #926
This commit is contained in:
@@ -951,6 +951,12 @@ def prepare_agh(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^/([a-z0-9]{1,8}\.)$",
|
||||
r"://\1",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_agh(line) and not line == '':
|
||||
text += line + '\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user