fix: 匹配成功直接返回原文字

This commit is contained in:
Rock Chin
2022-12-19 17:17:49 +08:00
parent d762fea382
commit 23df6c0707

View File

@@ -46,8 +46,7 @@ def check_response_rule(text: str) -> (bool, str):
import re import re
match = re.match(rule, text) match = re.match(rule, text)
if match: if match:
print(match) return True, text
return True, match.group(1)
return False, "" return False, ""