Reflecting the newest converter syntax changes

Based on https://github.com/DandelionSprout/adfilt/issues/1062#issuecomment-2394841352
This commit is contained in:
Imre Eilertsen
2024-10-05 03:16:52 +02:00
committed by GitHub
parent 593a7dbf83
commit b3ca8c6247
@@ -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'