mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-05 22:04:30 +01:00
Reflecting the newest syntax
This commit is contained in:
@@ -6224,6 +6224,18 @@ def prepare_hosts(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^:.{1,5}(\$.*)$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^!#[ie].*$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_hosts(line):
|
||||
text += line + '\n'
|
||||
|
||||
@@ -6454,6 +6466,18 @@ def prepare_domains(lines) -> str:
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^:.{1,5}(\$.*)$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
line = re.sub(
|
||||
r"^!#[ie].*$",
|
||||
r"",
|
||||
line
|
||||
)
|
||||
|
||||
if is_supported_domains(line):
|
||||
text += line + '\n'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user