mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-06 09:34:47 +01:00
Reflecting the newest converter syntax changes
Based on https://github.com/DandelionSprout/adfilt/issues/1062#issuecomment-2394841352
This commit is contained in:
@@ -7705,6 +7705,18 @@ def prepare_domains(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^:.*$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^# ?([a-zABCGI-SU-Z0-9]|\(|F[a-np-z0-9]|T[a-hj-z0-9]).*$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if not line == '':
|
||||
text += line + '\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user