mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 05:37:46 +00:00
🐞 fix: 敏敏肌
This commit is contained in:
parent
130646c0f8
commit
0870de469f
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ export class Panel extends ZZZPlugin {
|
||||||
priority: _.get(settings.getConfig('priority'), 'panel', 70),
|
priority: _.get(settings.getConfig('priority'), 'panel', 70),
|
||||||
rule: [
|
rule: [
|
||||||
{
|
{
|
||||||
reg: `${rulePrefix}(.*)面板(.*)$`,
|
reg: `${rulePrefix}(.*)面板(刷新|更新|列表)$`,
|
||||||
fnc: 'handleRule',
|
fnc: 'handleRule',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -40,7 +40,7 @@ export class Panel extends ZZZPlugin {
|
||||||
}
|
}
|
||||||
async handleRule() {
|
async handleRule() {
|
||||||
if (!this.e.msg) return;
|
if (!this.e.msg) return;
|
||||||
const reg = new RegExp(`${rulePrefix}(.*)面板(.*)$`);
|
const reg = new RegExp(`${rulePrefix}(.*)面板(刷新|更新|列表)$`);
|
||||||
const pre = this.e.msg.match(reg)[4].trim();
|
const pre = this.e.msg.match(reg)[4].trim();
|
||||||
const suf = this.e.msg.match(reg)[5].trim();
|
const suf = this.e.msg.match(reg)[5].trim();
|
||||||
if (['刷新', '更新'].includes(pre) || ['刷新', '更新'].includes(suf))
|
if (['刷新', '更新'].includes(pre) || ['刷新', '更新'].includes(suf))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue