mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Add mentions autocompleter
This commit is contained in:
parent
a2ee954bce
commit
1b4cdff9df
4 changed files with 125 additions and 2 deletions
|
|
@ -23,3 +23,9 @@ export const partiallyTypedEmojiValidator = createRegExp(
|
|||
),
|
||||
[caseInsensitive, multiline],
|
||||
);
|
||||
|
||||
export const partiallyTypedMentionValidator = createRegExp(
|
||||
exactly("@"),
|
||||
oneOrMore(letter.or(digit).or(exactly("_"))).notBefore(char),
|
||||
[caseInsensitive, multiline],
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue