From 36004a797737fb907f1269c6b9dff45f29f18135 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 2 Aug 2022 12:44:23 +0200 Subject: [PATCH] Make slash command completion more robust --- packages/web/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/types.ts b/packages/web/types.ts index 94035d0..f9f70a2 100644 --- a/packages/web/types.ts +++ b/packages/web/types.ts @@ -1,7 +1,7 @@ import { AppCommand, CommandDef } from "./hooks/command"; import { FilterOption, PageMeta } from "@silverbulletmd/common/types"; -export const slashCommandRegexp = /\/[\w\-]*/; +export const slashCommandRegexp = /(?