lib/prawn/emoji/image.rb in prawn-emoji-1.0.1 vs lib/prawn/emoji/image.rb in prawn-emoji-1.0.2
- old
+ new
@@ -20,10 +20,10 @@
end
private
def codepoint
- @codepoint ||= @unicode.codepoints.map { |c| c.to_s(16) }.join.upcase
+ @codepoint ||= @unicode.codepoints.map { |c| '%04x' % c.to_s }.join.upcase
end
end
end
end