x/text: iterator does not handle zero width joiner #60522
Labels
ExpertNeeded
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?I'm using the go playground
What did you do?
Playground: https://go.dev/play/p/Jq9CnUd2zA8
What did you expect to see?
It should print 🧑🏾⚖️👱🏾👩🏾🦰
I think it has to do with the library not handling zero width joiners. If I use this string: "😀😂" it works as expected.
What did you see instead?
️⚖🏾🧑🏾👱🦰🏾👩
The text was updated successfully, but these errors were encountered: