From 782f5517d3fcacb732edbbba9c5d7ceabf21b0c3 Mon Sep 17 00:00:00 2001 From: Wang Zichong Date: Tue, 10 Jan 2023 15:03:59 +0800 Subject: [PATCH] Fix falsely treat some symbols as emoji --- src/qml/Component/Timeline/RichLabel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Component/Timeline/RichLabel.qml b/src/qml/Component/Timeline/RichLabel.qml index da30849ca..76f226a97 100644 --- a/src/qml/Component/Timeline/RichLabel.qml +++ b/src/qml/Component/Timeline/RichLabel.qml @@ -11,7 +11,7 @@ import org.kde.kirigami 2.15 as Kirigami TextEdit { id: contentLabel - readonly property var isEmoji: /^()?(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])+(<\/span>)?$/ + readonly property var isEmoji: /^()?(\u00a9|\u00ae|[\u20D0-\u2fff]|[\u3190-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])+(<\/span>)?$/ readonly property var hasSpoiler: /data-mx-spoiler/g property bool isEmote: false