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;
|
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>;
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue