๐ŸŽˆ pref: V1.5.12 ๆ•ด็† PR ็š„ๅ†™ๆณ•

This commit is contained in:
zhiyu1998 2024-03-25 09:55:06 +08:00
parent 55bf936c4a
commit 140f4fc2d7

View File

@ -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];