I'm attempting to split a string into single words/chars, but I'm having trouble when it comes to emoji.
First of all, I can't simply split the string using an empty character because emojis are generally have length >= 2.
"π".split("")
["οΏ½", "οΏ½"]
I found an emoji regex that mostly works, but now I am seeing some strange flesh-colored blocks. I even see them show up on twitter in some cases.
Here's a pen that illustrates the problem with the fleshy blocks http://codepen.io/positlabs/pen/QyEOEG?editors=011
UPDATE -----------
Trying out spliddit, and I'm still seeing the issue with the skin tone characters. Is there some way to glue them back together?