mirror of
https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever.git
synced 2025-12-17 23:34:48 +08:00
merge sr_adb AD rules, rules enhance
License, remove repeated AD rules
This commit is contained in:
@@ -50,14 +50,14 @@ for rule_url in rules_url:
|
||||
# del prefix
|
||||
row = re.sub(r'^\|(\||https?:\/\/)', '', row)
|
||||
# del suffix
|
||||
row = row.rstrip('/^')
|
||||
row = row.rstrip('/^ ')
|
||||
|
||||
if re.search(r'[\$\^:\*]', row):
|
||||
continue
|
||||
if row.count('/'):
|
||||
continue
|
||||
|
||||
if not re.match(r'\w+\.\w+', row):
|
||||
if not re.match(r'\w+(\.\w+)+$', row):
|
||||
continue
|
||||
|
||||
# match
|
||||
|
||||
Reference in New Issue
Block a user