terminal.rs: add a symbols range to is_emoji check

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
This commit is contained in:
Manos Pitsidianakis 2024-05-23 09:30:18 +03:00
parent 58d7327130
commit ed5a6b04f4
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

View File

@ -220,6 +220,7 @@ impl TextPresentation for str {
};
let is_emoji = |base_char: char| -> bool {
[
0x2600..0x26FF, // Miscellaneous Symbols
0x2B00..0x2BFF, // Miscellaneous Symbols and Arrows
0x1F300..0x1F5FF, // Miscellaneous Symbols and Pictographs
0x1F600..0x1F64F, // Emoticons