A pretty big syntax conversion improvement

This commit is contained in:
Imre Kristoffer Eilertsen
2020-07-26 09:51:15 +02:00
committed by GitHub
parent c3526edae8
commit ca35899bde
3 changed files with 2670 additions and 23 deletions
+6
View File
@@ -342,6 +342,12 @@ def prepare_agh(lines) -> str:
line
)
line = re.sub(
r"^/([a-z0-9_]{1,30}\.$)",
r"://\1",
line
)
line = re.sub(
r"^/.*[a-zA-Z0-9_=.,*?!|^@&~+;-]$",
r"",
File diff suppressed because it is too large Load Diff
@@ -3,7 +3,7 @@
! Expires: 14 days
! Licence: In accordance with the Dandelicence, the borrowed entries are considered to have been changed and reduced enough from their original lists, that they're counted as transformative work, meaning that creditation and seperate paragraphs are not necessary unless one of the lists' makers were to ask for such.
! Description: This was made as a proof-of-concept to see if the IP-based entries of major adblock lists, could be used to create an IP adblocker list for IP blockers, despite how IP lists are normally only meant to block malware, E-mail spam, or port scanners.
! Version: 24July2020v1-Alpha
! Version: 26July2020v1-Alpha
104.154.237.93
174.142.194.177
194.71.107.25