Couldn't MS have told me 2 years ago that TPL entries were "www."-sensitive?!

This commit is contained in:
Imre Kristoffer Eilertsen
2020-03-08 09:28:26 +01:00
committed by GitHub
parent 27645ce583
commit 890e9e9f31
2 changed files with 604 additions and 297 deletions
File diff suppressed because it is too large Load Diff
@@ -578,6 +578,12 @@ def prepare_tpl(lines) -> str:
line
)
line = re.sub(
r".*[a-z0-9]//\$.*$",
"",
line
)
# TO-DO: Figure out how to make this NOT apply to lines that have the character "!" in them.
line = re.sub(
"/",
@@ -909,6 +915,12 @@ def prepare_tpl(lines) -> str:
line
)
line = re.sub(
r"^-d (.*)",
r"-d \1\n-d www.\1",
line
)
line = re.sub(
r"(.*)check out https://www\.i-dont-care-about-cookies\.eu/",
r"\1check out https://easylist-downloads.adblockplus.org/easylist-cookie.tpl (Can also be subscribed to from https://raw.githack.com/collinbarrett/FilterLists/master/data/TPLSubscriptionAssistant.html)",