mirror of
https://github.com/outline/outline.git
synced 2026-12-01 17:32:49 +03:00
fix: allow searching by email in @mention
This commit is contained in:
1 parent
85de8d8540
commit
0e5aea8194
1 file changed
+1
-1
@@ -8,7 +8,7 @@ export default class MentionMenuExtension extends Suggestion {
|
||||
get defaultOptions() {
|
||||
return {
|
||||
// ported from https://github.com/tc39/proposal-regexp-unicode-property-escapes#unicode-aware-version-of-w
|
||||
openRegex: /(?:^|\s|\()@([\p{L}\p{M}\d\s{1}]+)?$/u,
|
||||
openRegex: /(?:^|\s|\()@([\p{L}\p{M}\d\s{1}@\.]+)?$/u,
|
||||
closeRegex: /(?:^|\s|\()@(([\p{L}\p{M}\d]*\s{2})|(\s+[\p{L}\p{M}\d]+))$/u,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user