lib/prawn/emoji/index.rb in prawn-emoji-1.0.2 vs lib/prawn/emoji/index.rb in prawn-emoji-2.0.0
- old
+ new
@@ -10,10 +10,10 @@
end
private
def build_unicodes_regexp
- Regexp.compile unicodes.map { |unicode| "\\u{#{unicode}}" }.join('|')
+ Regexp.compile unicodes.map { |unicode| "\\u{#{unicode.split('-').join(' ')}}" }.join('|')
end
end
end
end