Fix slash commands activating when typing URLs
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user