From 6142e4283ed8fc8b7a8a78e2660fcf9302e7dceb Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Thu, 20 Jun 2024 11:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=20note=20=E5=AD=98=E5=9C=A8 ?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/methods/conversation/Conversation.class.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/methods/conversation/Conversation.class.js b/sdk/methods/conversation/Conversation.class.js index 61235f1..7496027 100644 --- a/sdk/methods/conversation/Conversation.class.js +++ b/sdk/methods/conversation/Conversation.class.js @@ -308,9 +308,9 @@ class Conversation { // console.error('last_visible_msg',_last_visible_msg) note = $utils.getMsgNote(_last_visible_msg) } - // 去掉\\n \\r \n \r 换行符 - note = note.replace(/\\n|\\r|\n|\r/g, ' ') - return note + // 替换\\n \\r \n \r   < > & 为 空格 + note = note.replace(/\\n|\\r|\n|\r| |<|>|&/g, ' ') + return note.trim() }, // 刷新会话的更新时间 update_time:{ -- GitLab