vdurmont/emoji-java

Multi character emoji's with fitzpatrick modifier is parsed as multiple emojis

Opened this issue ยท 1 comments

Passing an emoji like "๐Ÿ‘ฉ๐Ÿฝโ€โš–๏ธ" to EmojiParser.extractEmojis() will parse it as two emoji's ๐Ÿ‘ฉ๐Ÿพ โš–๏ธ
It looks like EmojiParser.getNextUnicodeCandidate does not take the fitzpatrick into account when trying to find the longest match.

Faced a similar issue: emoji ๐Ÿ‘จ๐Ÿพโ€๐Ÿฆณ (Man: White Hair) is parsed incorrectly. Hair tone is not handled, at the same time skin tone is parsed correctly.