mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
๐ pref: V1.5.12 ๆด็ PR ็ๅๆณ
This commit is contained in:
parent
55bf936c4a
commit
140f4fc2d7
@ -325,8 +325,7 @@ export class tools extends plugin {
|
|||||||
async biliCore(e) {
|
async biliCore(e) {
|
||||||
const urlRex = /(?:https?:\/\/)?www\.bilibili\.com\/[A-Za-z\d._?%&+\-=\/#]*/g;
|
const urlRex = /(?:https?:\/\/)?www\.bilibili\.com\/[A-Za-z\d._?%&+\-=\/#]*/g;
|
||||||
const bShortRex = /(http:|https:)\/\/b23.tv\/[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 = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") : e.msg.trim().replaceAll("\\", "");
|
||||||
let url = url1.replaceAll(/\\/g, "")
|
|
||||||
// ็ญๅทๅค็
|
// ็ญๅทๅค็
|
||||||
if (url.includes("b23.tv")) {
|
if (url.includes("b23.tv")) {
|
||||||
const bShortUrl = bShortRex.exec(url)?.[0];
|
const bShortUrl = bShortRex.exec(url)?.[0];
|
||||||
|
Loadingโฆ
x
Reference in New Issue
Block a user