From 479efae0c4de4cfd97298e71ce080ec6822ff39b Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Tue, 28 May 2024 18:39:15 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=96=B0=E5=A2=9E=E6=96=B0?= =?UTF-8?q?=E7=9A=84=20wb=20=E9=93=BE=E6=8E=A5=E9=80=82=E9=85=8D?= 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 da5802c..adc4756 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1047,7 +1047,7 @@ export class tools extends plugin { // 对已知情况进行判断 if (e.msg.includes("m.weibo.cn")) { // https://m.weibo.cn/detail/4976424138313924 - weiboId = /(?<=detail\/)[A-Za-z\d]+/.exec(e.msg)?.[0]; + weiboId = /(?<=detail\/)[A-Za-z\d]+/.exec(e.msg)?.[0] || /(?<=m.weibo.cn\/)[A-Za-z\d]+\/[A-Za-z\d]+/.exec(e.msg)?.[0]; } else if (e.msg.includes("weibo.com\/tv\/show") && e.msg.includes("mid=")) { // https://weibo.com/tv/show/1034:5007449447661594?mid=5007452630158934 weiboId = /(?<=mid=)[A-Za-z\d]+/.exec(e.msg)?.[0];