Make slash command completion more robust
This commit is contained in:
parent
7111fb6b1e
commit
36004a7977
@ -1,7 +1,7 @@
|
|||||||
import { AppCommand, CommandDef } from "./hooks/command";
|
import { AppCommand, CommandDef } from "./hooks/command";
|
||||||
import { FilterOption, PageMeta } from "@silverbulletmd/common/types";
|
import { FilterOption, PageMeta } from "@silverbulletmd/common/types";
|
||||||
|
|
||||||
export const slashCommandRegexp = /\/[\w\-]*/;
|
export const slashCommandRegexp = /(?<!\w)\/[\w\-]*/;
|
||||||
|
|
||||||
export type Notification = {
|
export type Notification = {
|
||||||
id: number;
|
id: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user