From 4b6a4a38ea19e218522b70ff29820525f4a96d15 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Thu, 31 Oct 2024 12:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E6=8F=90=E5=8D=87=20xhs?= =?UTF-8?q?=20=E5=9C=A8=20pc=20=E7=AB=AF=E8=A7=A3=E6=9E=90=E5=81=A5?= =?UTF-8?q?=E5=A3=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index 4abeeb6..c557c56 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1357,7 +1357,7 @@ export class tools extends plugin { }); } else { // 新版 xhs 这里必须是e.msg.trim(),因为要匹配参数:xsec_source 和 xsec_token - const xhsUrlMatch = e.msg.trim().match(/(http|https)?:\/\/(www\.)?xiaohongshu\.com[^\s]+/); + const xhsUrlMatch = e.msg.trim().replace("amp;", "").match(/(http|https)?:\/\/(www\.)?xiaohongshu\.com[^\s]+/); if (!xhsUrlMatch) { logger.info("[R插件][xhs] 无法匹配到链接"); return;