Fix coze normalizeText error
This commit is contained in:
@@ -879,6 +879,15 @@ function normalizeForQuickReply(value) {
|
||||
.trim();
|
||||
}
|
||||
|
||||
function normalizeText(value) {
|
||||
return String(value || "")
|
||||
.replace(/\r\n?/g, "\n")
|
||||
.replace(/\u00a0/g, " ")
|
||||
.replace(/[ \t]+/g, " ")
|
||||
.replace(/\n{3,}/g, "\n\n")
|
||||
.trim();
|
||||
}
|
||||
|
||||
async function detectManualHandoff({
|
||||
requestId,
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user