mathiasbynens / emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.
https://mths.be/emoji-regex
MIT License
1.73k stars 174 forks source link

Missing skin tone? #39

Closed reaperdtme closed 5 years ago

reaperdtme commented 6 years ago

Skin tone modifiers seem to break this. 👍🏿will not be matched by the regex <_<

mathiasbynens commented 5 years ago

Cannot reproduce:

const emojiRegex = require('emoji-regex');

const string = '\u{1F44D}\u{1F3FF}'; // '👍🏿'
console.log(
    string.match(emojiRegex())
);
// → [ '👍🏿' ]