debug: 输出正则表达式匹配结果

This commit is contained in:
Rock Chin
2022-12-19 17:16:34 +08:00
parent 0227ff0329
commit d762fea382

View File

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