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, ''); // 去掉全文