emojibase icon indicating copy to clipboard operation
emojibase copied to clipboard

Emoji regex don't work for not colored 👍

Open misha-erm opened this issue 2 years ago • 0 comments

Hello,

I was testing the emoji regex and noticed that it doesn't match thumbs up emoji if it doesn't have skin color

const EMOJI_REGEX = require('emojibase-regex/emoji');

console.log('Match for 👍🏻 :', '👍🏻'.match(EMOJI_REGEX)) //  ->  Match for 👍🏻 : [ '👍🏻', index: 0, input: '👍🏻', groups: undefined ]
console.log('Match for 👍 :','👍'.match(EMOJI_REGEX)) //  -> Match for 👍 : null

Here is a link to REPL https://replit.com/@MikeYermolayev/emojibase-regex-repro

Thank you

misha-erm avatar Jul 14 '23 19:07 misha-erm