修改分段回复逻辑
This commit is contained in:
1 parent
1be5b4c7ff
commit
0a02441b75
1 file changed
+1
-3
@@ -151,9 +151,7 @@ class ResultDecorateStage(Stage):
|
||||
# 不分段回复
|
||||
new_chain.append(comp)
|
||||
continue
|
||||
split_response = []
|
||||
for line in comp.text.split("\n"):
|
||||
split_response.extend(re.findall(self.regex, line))
|
||||
split_response = re.findall(self.regex, comp.text, re.DOTALL)
|
||||
if not split_response:
|
||||
new_chain.append(comp)
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user