3 ms·
A single emoji is a sequence (of bytes)
by LordDragonfang 2y ago
A single emoji is a sequence (of bytes)
- _Algernon_ 2y ago"<thing> sequence" is generally taken as a sequence of <thing>. There is a certain ambiguity there.
- bbor 2y agoIt's just one :) https://github.com/dddddddddzzzz/open-heart-element/blob/main/src/index.ts#L34-L45 https://github.com/dddddddddzzzz/open-heart-element/blob/mai...
- triyambakam 2y agoSo the API rejects a lot of valid emojis from my reading of that
- isitnow 2y agoMay want to have a look at the linked count again “BBOR”: https://api.oh.dddddddddzzzz.org/github.com/dddddddddzzzz/OpenHeart https://api.oh.dddddddddzzzz.org/github.com/dddddddddzzzz/Op... https://emojipedia.org/zero-width-joiner https://emojipedia.org/zero-width-joiner
- LordDragonfang 2y agoHuh. ZWJ is an interesting corner case. Technically it's supposed to be used when combining emoji sequences that compose another single emoji (flags, skin color, gender, etc), but if the server doesn't discriminate for "real" emoji combos it technically can be an arbitrary combo.