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.74k stars 174 forks source link

support for modifiers/variations #9

Closed tzapu closed 7 years ago

tzapu commented 7 years ago

hi,

is there any chance this project will support variations?

what we are using it for is to check if a text has emojis in it then wrap them with spans with the proper fonts so they work on more browsers properly (ie, edge)

because variations are not supported, it s considering them 2 characters with mixed results in various browsers (firefox sees it properly, chrome renders two characters)

cheers

mathiasbynens commented 7 years ago

Variations should be supported since the rewrite. Please reopen if something isn’t working for you.