mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 13:47:44 +00:00
fix
This commit is contained in:
parent
ab9506c870
commit
77e633a742
1 changed files with 5 additions and 0 deletions
|
|
@ -44,8 +44,13 @@ export default class Button {
|
|||
if (global.zzzCurrentCharName) {
|
||||
charName = global.zzzCurrentCharName;
|
||||
} else {
|
||||
const match = e.match || e.msg.match(/^(%|#|#)(.+?)面板$/);
|
||||
const parsedName = match?.[2]?.trim();
|
||||
if (parsedName && !['更新', '刷新', '列表'].includes(parsedName)) {
|
||||
charName = parsedName;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const buttonRows = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue