mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 新增新的 wb 链接适配
This commit is contained in:
parent
2868d3701e
commit
479efae0c4
@ -1047,7 +1047,7 @@ export class tools extends plugin {
|
||||
// 对已知情况进行判断
|
||||
if (e.msg.includes("m.weibo.cn")) {
|
||||
// https://m.weibo.cn/detail/4976424138313924
|
||||
weiboId = /(?<=detail\/)[A-Za-z\d]+/.exec(e.msg)?.[0];
|
||||
weiboId = /(?<=detail\/)[A-Za-z\d]+/.exec(e.msg)?.[0] || /(?<=m.weibo.cn\/)[A-Za-z\d]+\/[A-Za-z\d]+/.exec(e.msg)?.[0];
|
||||
} else if (e.msg.includes("weibo.com\/tv\/show") && e.msg.includes("mid=")) {
|
||||
// https://weibo.com/tv/show/1034:5007449447661594?mid=5007452630158934
|
||||
weiboId = /(?<=mid=)[A-Za-z\d]+/.exec(e.msg)?.[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user