mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
fix: 匹配成功直接返回原文字
This commit is contained in:
@@ -46,8 +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 True, text
|
||||
|
||||
return False, ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user