mirror of
https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever.git
synced 2025-12-17 23:34:48 +08:00
This commit is contained in:
@@ -98,7 +98,7 @@ for row in rule:
|
||||
# 清除后缀
|
||||
row = row.rstrip('/*')
|
||||
if row[-1] == '^':
|
||||
row = '.'+row
|
||||
# row = '.'+row
|
||||
row = row.rstrip('^')
|
||||
row = re.sub(r':\d{2,5}$', '', row) # 清除端口
|
||||
|
||||
|
||||
Reference in New Issue
Block a user