From ed6ffb695ab8627f41ac752c641a0a9d678049c5 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 11 Aug 2023 14:19:46 -0700 Subject: [PATCH] Show mentions menu after pressing @, no further characters required --- ts/quill/mentions/completion.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/quill/mentions/completion.tsx b/ts/quill/mentions/completion.tsx index a0c5e32c5..dd400a514 100644 --- a/ts/quill/mentions/completion.tsx +++ b/ts/quill/mentions/completion.tsx @@ -29,7 +29,7 @@ export type MentionCompletionOptions = { theme: ThemeType; }; -const MENTION_REGEX = /(?:^|\W)@([-+\p{L}\p{M}\p{N}]+)$/u; +const MENTION_REGEX = /(?:^|\W)@([-+\p{L}\p{M}\p{N}]*)$/u; export class MentionCompletion { results: ReadonlyArray;