Show mentions menu after pressing @, no further characters required

This commit is contained in:
Scott Nonnenberg 2023-08-11 14:19:46 -07:00 committed by Jamie Kyle
parent deb1f9bd8d
commit ed6ffb695a

View file

@ -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<ConversationType>;