Fix multipoint shortcode bug (#4387)
* Fix multipoint shortcode bug * Added testcase for composite emoji shortcode
This commit is contained in:
parent
994d948c39
commit
f49339ca9c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue