exmoji icon indicating copy to clipboard operation
exmoji copied to clipboard

Which emoji version is supported?

Open pejrich opened this issue 4 years ago • 1 comments

I'm using this JS lib to add an emoji picker. https://github.com/joeattardi/emoji-button

I want you use this Elixir lib to validate the emoji being send is an emoji, and only a single emoji before inserting it into the DB, but even when I bump the emoji version down to 1.0, I notice that scanning the string turns up an empty list, even for a lot of popular emojis, e.g. zipper-mouth face/🤐. Is there plans to support the full 1.0 (or ideally later) set of emojis? Alternatively, is there another way to verify that a string contains a single emoji?

pejrich avatar Jun 10 '20 04:06 pejrich

This library is API compatible downstream of the Ruby version, which does not contain the most recent Emoji.

More recent versions are not trivial to support at the low level, a lot of complexity has been added (ZWJs, skin tone modifiers, etc), see for example: https://github.com/mroth/emoji_data.rb/pull/2

If someone wants to take on the work to figure out how to support all of those in a robust way in the upstream library, it should then be a possible task to downstream the changes to this library as well.

mroth avatar Jun 17 '20 18:06 mroth