merge sr_adb AD rules, rules enhance

License, remove repeated AD rules
This commit is contained in:
Moshel
2017-06-28 23:52:04 +08:00
parent 6918fd0b85
commit ace0b5a070
9 changed files with 526 additions and 202 deletions

View File

@@ -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