element-web/src/editor
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
..
autocomplete.ts Improve quality of Typescript types (#10742) 2023-05-05 09:11:14 +01:00
caret.ts Fix caret jump when backspacing into empty line at beginning of editor (#11128) 2023-06-23 15:24:05 +00:00
commands.tsx Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
deserialize.ts Support s tags for strikethrough for Matrix v1.10 (#12604) 2024-06-13 13:44:48 +00:00
diff.ts Replace deprecated String#substr with String#slice (#8314) 2022-04-14 07:52:42 +00:00
dom.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
history.ts Make more of the codebase conform to strict types (#10857) 2023-05-16 14:25:43 +01:00
model.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
offset.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
operations.ts Use `*` for italics as it doesn't break when used mid-word (#12523) 2024-05-15 09:01:45 +00:00
parts.ts Don't consider textual characters to be emoji (#12582) 2024-07-04 17:48:07 +00:00
position.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
range.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
render.ts Conform more code to strict null checking (#10167) 2023-02-16 17:21:44 +00:00
serialize.ts Handle newlines in user pills (#11166) 2023-07-05 22:00:27 +00:00