mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
Allow space when searching for @mention
This commit is contained in:
1 parent
510a756378
commit
976db13ea0
1 file changed
+1
-1
@@ -9,7 +9,7 @@ export default class MentionMenuExtension extends Suggestion {
|
||||
return {
|
||||
// ported from https://github.com/tc39/proposal-regexp-unicode-property-escapes#unicode-aware-version-of-w
|
||||
openRegex: /(?:^|\s|\()@([\p{L}\p{M}\d]+)?$/u,
|
||||
closeRegex: /(?:^|\s|\()@(([\p{L}\p{M}\d]*\s+)|(\s+[\p{L}\p{M}\d]+))$/u,
|
||||
closeRegex: /(?:^|\s|\()@(([\p{L}\p{M}\d]*\s{2})|(\s+[\p{L}\p{M}\d]+))$/u,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user