Update mentions regex to cover diacritics
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user