From 98bc636a39cf156a597d240a8cb3ff2b9ea934d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E5=AD=90?= <54745251+BingZi-233@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:23:28 +0800 Subject: [PATCH] fix: remove invalid shortcut anchor (#2117) --- zhenxun/builtin_plugins/admin/plugin_switch/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/admin/plugin_switch/command.py b/zhenxun/builtin_plugins/admin/plugin_switch/command.py index 3460d098..7d503667 100644 --- a/zhenxun/builtin_plugins/admin/plugin_switch/command.py +++ b/zhenxun/builtin_plugins/admin/plugin_switch/command.py @@ -105,7 +105,7 @@ def _switch_wrapper(slot: str, content: str | None, context: dict) -> str: _status_matcher.shortcut( - r"^(?P开启|关闭)\s*(?P所有|全部)?\s*(?P默认)?\s*(?P群被动|被动|插件|功能)?\s*", + r"(?P开启|关闭)\s*(?P所有|全部)?\s*(?P默认)?\s*(?P群被动|被动|插件|功能)?\s*", command="switch {all} {default} {type} {action} {* }", wrapper=_switch_wrapper, # type: ignore prefix=True,