about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorOndřej Hruška <ondra@ondrovo.com>2017-07-27 01:02:15 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-07-27 01:02:15 +0200
commitf49339ca9ca2fbc7feca30be217ed2311ebd106a (patch)
tree5ece177e11d380e592d6fe9aa8505511204b32e2 /app
parent994d948c3947b75140c2a2a7de5b81713c7b8ea3 (diff)
Fix multipoint shortcode bug (#4387)
* Fix multipoint shortcode bug

* Added testcase for composite emoji shortcode
Diffstat (limited to 'app')
-rw-r--r--app/lib/emoji.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/emoji.rb b/app/lib/emoji.rb
index e444b6893..6de70e9b4 100644
--- a/app/lib/emoji.rb
+++ b/app/lib/emoji.rb
@@ -32,7 +32,7 @@ class Emoji
 
   def codepoint_to_unicode(codepoint)
     if codepoint.include?('-')
-      codepoint.split('-').map(&:hex).pack('U')
+      codepoint.split('-').map(&:hex).pack('U*')
     else
       [codepoint.hex].pack('U')
     end