Andrew-M-C/go.emoji

Emoji Iteration Incorrectly Identifies Numbers as Emojis

Closed this issue · 1 comments

func ExampleIterateChars() {
s := "China_1m"

for it := emoji.IterateChars(s); it.Next(); {
	fmt.Println(it.Current(), "-", it.CurrentIsEmoji())
}

// Output:
// C - false
// h - false
// i - false
// n - false
// a - false
// _ - false
// 1 - true -- is error
// m - false

}

Please try branch feature/v1.1.3, it fixed.
I will release v1.1.3 later