You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The space separated one I think might only be the newer ones since the slug responsibility was moved over to https://github.com/muan/unicode-emoji-json since 3.x. See "slug" field.
However, I wouldn't say that is "reliable". The Unicode emoji spec itself changes name of emoji every now and then as well. For example Gun was changed to Water Gun between versions. If you want something reliable it might either have to be custom maintained yourself or follow one of those platform specific short codes from GitHub, Slack, Discord, and the likes.
It's not too late to fix but there isn't a standardized way for this yet (#194).
If I were to make a decision today I'd lean towards using space separated emoji names as keywords.
Thanks for the response. I'd expect a primary use case to be storing an emoji reference as a string in a db, whether standalone or in markdown. In either case a slug-style string is pretty much the norm.
At any rate, I've switched to mapping directly against unicode-emoji-json to address this.
I'm trying to reliably match an emoji slug to the list, but this isn't currently possible.
Most use a slug as the first entry in the list:
emojilib/dist/emoji-en-US.json
Lines 2 to 10 in 0e7aca3
But some use spaces instead of underscore, so they can't be matched by slug:
emojilib/dist/emoji-en-US.json
Lines 12998 to 13003 in 0e7aca3
Is this intentional, or is it too late to fix?
The text was updated successfully, but these errors were encountered: