0
0
Fork 0

Fix multipoint shortcode bug (#4387)

* Fix multipoint shortcode bug

* Added testcase for composite emoji shortcode
This commit is contained in:
Ondřej Hruška 2017-07-27 01:02:15 +02:00 committed by Eugen Rochko
parent 994d948c39
commit f49339ca9c
2 changed files with 6 additions and 1 deletions

View file

@ -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