Fix slash commands activating when typing URLs
This commit is contained in:
parent
bb04f30470
commit
b5120f9b12
@ -20,7 +20,7 @@ export type SlashCommandHookT = {
|
|||||||
slashCommand?: SlashCommandDef;
|
slashCommand?: SlashCommandDef;
|
||||||
};
|
};
|
||||||
|
|
||||||
const slashCommandRegexp = /([^\w]|^)\/[\w\-]*/;
|
const slashCommandRegexp = /([^\w:]|^)\/[\w\-]*/;
|
||||||
|
|
||||||
export class SlashCommandHook implements Hook<SlashCommandHookT> {
|
export class SlashCommandHook implements Hook<SlashCommandHookT> {
|
||||||
slashCommands = new Map<string, AppSlashCommand>();
|
slashCommands = new Map<string, AppSlashCommand>();
|
||||||
|
Loading…
Reference in New Issue
Block a user