Update mentions regex to cover diacritics
This commit is contained in:
parent
60f7308dc8
commit
0b885d5feb
2 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,7 @@ export type MentionCompletionOptions = {
|
|||
theme: ThemeType;
|
||||
};
|
||||
|
||||
const MENTION_REGEX = /(?:^|\W)@([-+\w]*)$/;
|
||||
const MENTION_REGEX = /(?:^|\W)@([-+\p{L}\p{M}\p{N}]+)$/u;
|
||||
|
||||
export class MentionCompletion {
|
||||
results: ReadonlyArray<ConversationType>;
|
||||
|
|
|
@ -28,7 +28,6 @@ const me: ConversationType = getDefaultConversationWithUuid({
|
|||
isMe: true,
|
||||
});
|
||||
|
||||
// TODO diacritic
|
||||
const members: Array<ConversationType> = [
|
||||
getDefaultConversationWithUuid({
|
||||
id: '555444',
|
||||
|
|
Loading…
Reference in a new issue