From f49339ca9ca2fbc7feca30be217ed2311ebd106a Mon Sep 17 00:00:00 2001 From: Ondřej Hruška Date: Thu, 27 Jul 2017 01:02:15 +0200 Subject: Fix multipoint shortcode bug (#4387) * Fix multipoint shortcode bug * Added testcase for composite emoji shortcode --- app/lib/emoji.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit