From 140f4fc2d73a58aae4214213207986b4c4b7e4cc Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Mon, 25 Mar 2024 09:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20V1.5.12=20=E6=95=B4?= =?UTF-8?q?=E7=90=86=20PR=20=E7=9A=84=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index bdba5bc..6c91e58 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -325,8 +325,7 @@ export class tools extends plugin { async biliCore(e) { const urlRex = /(?:https?:\/\/)?www\.bilibili\.com\/[A-Za-z\d._?%&+\-=\/#]*/g; const bShortRex = /(http:|https:)\/\/b23.tv\/[A-Za-z\d._?%&+\-=\/#]*/g; - let url1 = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") : e.msg.trim(); - let url = url1.replaceAll(/\\/g, "") + let url = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") : e.msg.trim().replaceAll("\\", ""); // 短号处理 if (url.includes("b23.tv")) { const bShortUrl = bShortRex.exec(url)?.[0];