diff --git a/web/hooks/slash_command.ts b/web/hooks/slash_command.ts index 696c5b7..e1798ea 100644 --- a/web/hooks/slash_command.ts +++ b/web/hooks/slash_command.ts @@ -20,7 +20,7 @@ export type SlashCommandHookT = { slashCommand?: SlashCommandDef; }; -const slashCommandRegexp = /([^\w]|^)\/[\w\-]*/; +const slashCommandRegexp = /([^\w:]|^)\/[\w\-]*/; export class SlashCommandHook implements Hook { slashCommands = new Map();