forPelevin / gomoji

Helpful functions to work with emoji in Golang
MIT License
190 stars 28 forks source link

Regional indicators are not supported. #11

Closed 5HT2 closed 1 year ago

5HT2 commented 2 years ago

I have a json like so:

[{"emoji": "🇦", "id": 855898699988205598},
{"emoji": "🇧", "id": 855908027546468414},
{"emoji": "🇨", "id": 855910336619872306},
{"emoji": "🇩", "id": 874810967303802891},
{"emoji": "🇪", "id": 855908176960552971},
{"emoji": "🇫", "id": 855895610129645598},
{"emoji": "🇬", "id": 856311847765934080},
{"emoji": "🇭", "id": 863577067869437962},
{"emoji": "🇮", "id": 855998416941481984},
{"emoji": "🇯", "id": 872964477518229524},
{"emoji": "🇰", "id": 855901430544203787},
{"emoji": "🇱", "id": 856312436171997214},
{"emoji": "🇲", "id": 892549953568788511},
{"emoji": "🇳", "id": 856661374465474590},
{"emoji": "🇴", "id": 875603397171097660},
{"emoji": "🇵", "id": 855910253577240628},
{"emoji": "🇶", "id": 855895290828423168},
{"emoji": "🇷", "id": 855896139885445151}]

using

gomoji.CollectAll(s)

Returns an empty slice.

forPelevin commented 1 year ago

Hey @5HT2!

Sorry for the long response. It looks like I have to figure out a new way to parse emojis like this. Will let you know, when I find out something.

5HT2 commented 1 year ago

Cool thank you!

forPelevin commented 1 year ago

Hey @5HT2 ,

I fixed the issue, and now it should work correctly. Thank you for the report.

5HT2 commented 1 year ago

Thanks!