-
Notifications
You must be signed in to change notification settings - Fork 103
Description
I noticed my "eye in speech bubble" emoji image was not loading - the image was not found.
The hex code for "eye in speech bubble" is 1f441-fe0f-200d-1f5e8-fe0f but the twemoji file for that emoji is 1f441-200d-1f5e8.png.
I see the logic in:
Lines 344 to 350 in 388f518
| function grabTheRightIcon(rawText) { | |
| // if variant is present as \uFE0F | |
| return toCodePoint(rawText.indexOf(U200D) < 0 ? | |
| rawText.replace(UFE0Fg, '') : | |
| rawText | |
| ); | |
| } |
Which is supposed to convert the emoji to the correct hexcode for the filename by sometimes removing the fe0f codes, but it doesn't work in this case. This is the only emoji affected.
Here's a reproducer - https://nicksellen.co.uk/upld/twemoji-issue.html - with description of the issue on the page.
Renaming the file would work, but perhaps breaks something else for someone? Or do some other logic in that function to give the correct filename without breaking the other emojis.
Given there are already lots of filenames with fe0f in (where 200d is also present) renaming the file would make sense to me!