aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ChienDice/plugins/iamai_plugin_base/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'ChienDice/plugins/iamai_plugin_base/__init__.py')
-rw-r--r--ChienDice/plugins/iamai_plugin_base/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ChienDice/plugins/iamai_plugin_base/__init__.py b/ChienDice/plugins/iamai_plugin_base/__init__.py
index e99ce15..fe0cd32 100644
--- a/ChienDice/plugins/iamai_plugin_base/__init__.py
+++ b/ChienDice/plugins/iamai_plugin_base/__init__.py
@@ -70,7 +70,7 @@ class CommandPluginBase(RegexPluginBase[T_State, T_CommandPluginConfig], ABC):
def str_match(self, msg_str: str) -> bool:
if not hasattr(self, "command_re_pattern"):
self.command_re_pattern = re.compile(
- f'({"|".join(self.config.command_prefix)})'
+ f'[{"".join(self.config.command_prefix)}]'
f'({"|".join(self.config.command)})'
r"\s*(?P<command_args>.*)",
flags=re.I if self.config.ignore_case else 0,