I send this message
And receive this
@ /* ... */ emotes=25:6-10; /* ... */ :email@example.com PRIVMSG #dmitryscaletta :👩❤️💋👩 Kappa
It says that emote with id 25 starts in 6th position.
I can’t just use
length because the length of this string in js is 9.
'👩❤️💋👩 '.length === 9
So I found this solution - https://stackoverflow.com/a/54369738/4687416
It works for most of the cases with emojis but not for this one.
fancyCount('🤔 ') === 2 // ok fancyCount('👩❤️💋👩 ') === 5 // expected 6
However twitch chat works fine with this (screen from React Dev Tools).