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
{{ message }}
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
Whereas I'd expect it to produce (I modified the page source to get it to display correctly for example purposes):
I've tested on most browsers and OS' and it seems to be mostly all of them that produce the same output, leading me to the conclusion that the library itself is returning the wrong value.
Anyone experiencing a similar thing?
The text was updated successfully, but these errors were encountered:
TR51 suggests that "plain web pages" display characters that do not have the Emoji_Presentation property as text rather than images unless they are followed by U+FE0F, AKA variation selector 16 . Therefore, browsers display "\u2764" as text and "\u2764\uFE0F" as an image.
If shortnameToUnicode()'s purpose is to display images then emojione.shortnameToUnicode(':heart:') should return "\u2764\uFE0F".
I actually was thinking in a similar direction before I created this issue, but my eyes scanned the RuleSet definition for :heart and I read '2764-fe0f' in its array and thought it was that which was being returned in this conversion, but I see now it is actually '2764'.
So, spot on 👍
Unfortunately, it appears as though most of the heart ones may be outputting incorrectly.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The demo here when you enter
:heart:
produces:Whereas I'd expect it to produce (I modified the page source to get it to display correctly for example purposes):
I've tested on most browsers and OS' and it seems to be mostly all of them that produce the same output, leading me to the conclusion that the library itself is returning the wrong value.
Anyone experiencing a similar thing?
The text was updated successfully, but these errors were encountered: