Improve emojis
This commit is contained in:
parent
a79e2cbaba
commit
0b7f33849a
5 changed files with 42 additions and 17 deletions
|
|
@ -83,7 +83,7 @@ class Autocomplete {
|
|||
|
||||
if (emojiIndex != -1 && emojiIndex > mentionIndex) {
|
||||
const emoji = text.substr(emojiIndex + 1);
|
||||
if (!emoji.match(/^[\+\-a-z_]+$/)) return;
|
||||
if (!emoji.match(/^[\+\-a-z0-9_]+$/)) return;
|
||||
this.open('emoji', emoji);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue