mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-05 05:16:03 +00:00
debug: 输出正则表达式匹配结果
This commit is contained in:
@@ -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, ""
|
||||
|
||||
Reference in New Issue
Block a user