From b5120f9b12df2bcf752256f2ea3af6faae0b51ef Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 19 Dec 2022 13:14:26 +0100 Subject: [PATCH] Fix slash commands activating when typing URLs --- web/hooks/slash_command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();