From 4c8a0d843b216475090d0d19f07f7b27aaba6988 Mon Sep 17 00:00:00 2001 From: simoin Date: Tue, 23 Jun 2020 19:20:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20weibo=20=E5=86=85=E5=AE=B9=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=20(#5034)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/weibo/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/weibo/utils.js b/lib/routes/weibo/utils.js index de8557130..7b3912d30 100644 --- a/lib/routes/weibo/utils.js +++ b/lib/routes/weibo/utils.js @@ -4,10 +4,10 @@ const weiboUtils = { format: (status) => { // 长文章的处理 let temp = (status.longText && status.longText.longTextContent.replace(/\n/g, '
')) || status.text || ''; - // 去掉外部链接的图标 - temp = temp.replace(/.*?网页链接<\/span>/g, '网页链接'); // 表情图标转换为文字 temp = temp.replace(/<\/span>/g, '$1'); + // 去掉外部链接的图标 + temp = temp.replace(/.*?<\/span>(.*?)<\/span>/g, '$1'); // 去掉乱七八糟的图标 temp = temp.replace(/(.*?)<\/span>/g, ''); // 去掉全文