rivo / uniseg

Unicode Text Segmentation, Word Wrapping, and String Width Calculation in Go
MIT License
585 stars 61 forks source link

Detect if grapheme is an emoji #55

Open aymanbagabas opened 4 months ago

aymanbagabas commented 4 months ago

This adds the necessary logic to detect if a grapheme cluster is an emoji based on @rivo's comment

Fixes: https://github.com/rivo/uniseg/issues/27