Improve emojis

This commit is contained in:
syuilo 2018-02-25 17:03:39 +09:00
parent a79e2cbaba
commit 0b7f33849a
5 changed files with 42 additions and 17 deletions

View file

@ -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);
}
}