orling / grapheme-splitter

A JavaScript library that breaks strings into their individual user-perceived characters.
MIT License
926 stars 45 forks source link

'🐱‍👤' seems to be split into to two #28

Closed AlienKevin closed 5 years ago

AlienKevin commented 5 years ago

It seems that the Ninja Cat emoji is incorrectly split into two.

ljharb commented 5 years ago

On my browser (iOS safari) i see two separate emojis, a cat and a silhouette, including on your linked webpage.

AlienKevin commented 5 years ago

Oh, good point. Maybe it's because I'm on Windows 10 while you are on iOS. The reason of this inconsistency might be: "This Emoji ZWJ Sequence has not been Recommended For General Interchange (RGI) by Unicode. Expect limited cross-platform support." I'm closing this issue because the Unicode should be the standard.