1
0

Fix slash commands activating when typing URLs

This commit is contained in:
Zef Hemel 2022-12-19 13:14:26 +01:00
parent bb04f30470
commit b5120f9b12

View File

@ -20,7 +20,7 @@ export type SlashCommandHookT = {
slashCommand?: SlashCommandDef;
};
const slashCommandRegexp = /([^\w]|^)\/[\w\-]*/;
const slashCommandRegexp = /([^\w:]|^)\/[\w\-]*/;
export class SlashCommandHook implements Hook<SlashCommandHookT> {
slashCommands = new Map<string, AppSlashCommand>();