Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I see your 2 and raise you 2:

"(this is a color-hued hand from Apple that doesn't render on HN)".length == 4

I ran into the length==2 bug when truncating some text, it led to errors trying to url encode a string :)

The author's `fancyCount2` still returns a size of 2 for these kinds of emoji, but I'm not too surprised.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: