Updated emoji completion to allow capital letters

Signed-off-by: JPyke3 <pyke.jacob1@gmail.com>
This commit is contained in:
Jacob Pyke 2021-02-04 23:40:26 +01:00 committed by GitHub
parent 062a1f7dd9
commit d93e66813d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,8 +123,8 @@ export class EmojiCompletion {
const [leftTokenTextMatch, rightTokenTextMatch] = matchBlotTextPartitions(
blot,
index,
/(?<=^|\s):([-+0-9a-z_]*)(:?)$/,
/^([-+0-9a-z_]*):/
/(?<=^|\s):([-+0-9a-zA-Z_]*)(:?)$/,
/^([-+0-9a-zA-Z_]*):/
);
if (leftTokenTextMatch) {