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