From 0b7f33849a730b620cc25aeffeac2c4e2b48ecef Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Feb 2018 17:03:39 +0900 Subject: Improve emojis --- src/web/app/common/views/directives/autocomplete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/app/common/views/directives/autocomplete.ts') diff --git a/src/web/app/common/views/directives/autocomplete.ts b/src/web/app/common/views/directives/autocomplete.ts index 8a33b4e595..e221cce71e 100644 --- a/src/web/app/common/views/directives/autocomplete.ts +++ b/src/web/app/common/views/directives/autocomplete.ts @@ -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); } } -- cgit v1.2.3-freya