Open joseramonc opened 9 years ago
Just coded an ugly monkey patch to prevent database errors if that can help someone reading this issue.
require 'gemoji'
module EmojiParser
def self.tokenize(text)
text = text.gsub(color_emoji_regex, '')
parse_unicode(text) { |emoji| ":#{emoji.name}:" }
end
def self.color_emoji_regex
reg = /((?:\u{1f3fb}|\u{1f3fc}|\u{1f3fd}|\u{1f3fe}|\u{1f3ff}?))/
end
end
Is there an appropiate way to parse apple colored emojis?
I'm getting: