This commit is contained in:
Johnshall
2023-08-09 17:36:26 +08:00
committed by GitHub
parent d254d6277c
commit 88ca73aca1
2 changed files with 21 additions and 21 deletions

View File

@@ -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) # 清除端口