mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 添加哔哩哔哩小程序支持
This commit is contained in:
parent
7397722cbc
commit
1fdc4a65a6
@ -284,7 +284,7 @@ export class tools extends plugin {
|
||||
async bili(e) {
|
||||
const urlRex = /(http:|https:)\/\/www.bilibili.com\/[A-Za-z\d._?%&+\-=\/#]*/g;
|
||||
const bShortRex = /(http:|https:)\/\/b23.tv\/[A-Za-z\d._?%&+\-=\/#]*/g;
|
||||
let url = e.msg.trim();
|
||||
let url = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") :e.msg.trim();
|
||||
// 短号处理
|
||||
if (url.includes("b23.tv")) {
|
||||
const bShortUrl = bShortRex.exec(url)[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user