Update mentions regex to cover diacritics

This commit is contained in:
Josh Perez
2023-07-10 13:36:35 -04:00
committed by GitHub
parent 60f7308dc8
commit 0b885d5feb
2 changed files with 1 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ export type MentionCompletionOptions = {
theme: ThemeType; theme: ThemeType;
}; };
const MENTION_REGEX = /(?:^|\W)@([-+\w]*)$/; const MENTION_REGEX = /(?:^|\W)@([-+\p{L}\p{M}\p{N}]+)$/u;
export class MentionCompletion { export class MentionCompletion {
results: ReadonlyArray<ConversationType>; results: ReadonlyArray<ConversationType>;

View File

@@ -28,7 +28,6 @@ const me: ConversationType = getDefaultConversationWithUuid({
isMe: true, isMe: true,
}); });
// TODO diacritic
const members: Array<ConversationType> = [ const members: Array<ConversationType> = [
getDefaultConversationWithUuid({ getDefaultConversationWithUuid({
id: '555444', id: '555444',