diff --git a/apps/tools.js b/apps/tools.js index a00404a..0cf3e54 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -321,7 +321,8 @@ 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 url = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") : e.msg.trim(); + let url1 = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") : e.msg.trim(); + let url = url1.replaceAll(/\\/g, "") // 短号处理 if (url.includes("b23.tv")) { const bShortUrl = bShortRex.exec(url)?.[0];