I have some text that I'm processing which includes emoji. I'm trying to strip out all the emoji by using checking whether a rune fulfils unicode.IsSymbol(). This strips out the emoji, but it seems that some emoji include a unicode variation selector that is not stripped out. So I also need to check if a rune is a variation selector, but I don't see any sane way of doing that. Is there a direct way to check if a rune is a variation selector, or is it possibly a bug that the variation selector is not being grouped with the emoji as part of the rune?
Either way, the only robust method that I can think of now would be to create my own function to thing that I can think of now would be to parse the unicode.Variation_Selector RangeTable to check for this. But I'm hoping there is a simpler way that I'm missing. The variation selector that I'm currently getting is 0xFE0F, but I'd like my code to not rely on only ever getting this variation selector. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.