更新 panel.js

This commit is contained in:
UCPr 2025-03-15 13:15:18 +08:00 committed by GitHub
parent 04a980ba93
commit 1c0eedc525
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ export class Panel extends ZZZPlugin {
}
async handleRule() {
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 suf = this.e.msg.match(reg)[5].trim();
if (['刷新', '更新'].includes(pre) || ['刷新', '更新'].includes(suf))