element-web/test/__snapshots__
Robin c61eca8c24
Don't consider textual characters to be emoji (#12582)
* Don't consider textual characters to be emoji

We were using emojibase-regex to match emoji within messages. However, the docs (https://emojibase.dev/docs/regex/) state that this regex matches both emoji and text presentation characters. This is not what we want, and will result in false positives for characters like '↔' that could turn into an emoji if paired with a variation selector. Unfortunately, none of the other regexes provided by Emojibase do what we want either (https://github.com/milesj/emojibase/issues/174). In the meantime, browser support for the RGI_Emoji character sequence class has made it feasible to write an emoji regex by hand, so that's what I've done.

* Add a fallback for BIGEMOJI_REGEX as well
2024-07-04 17:48:07 +00:00
..
HtmlUtils-test.tsx.snap Don't consider textual characters to be emoji (#12582) 2024-07-04 17:48:07 +00:00
LegacyCallHandler-test.ts.snap Handle starting a call while listen to a broadcast (#9764) 2022-12-19 08:44:19 +00:00
Reply-test.ts.snap add fallback reply for poll start (#10380) 2023-03-16 21:27:56 +00:00
SlashCommands-test.tsx.snap Use data-mx-color for rainbows (#12325) 2024-03-19 23:34:11 +00:00
TextForEvent-test.ts.snap Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
theme-test.ts.snap Enable custom themes to theme Compound (#12240) 2024-02-13 14:07:58 +00:00