From 9604836ed943299278395b51d21fe04459272d1a Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 15 Aug 2022 15:13:28 +0300 Subject: [PATCH] Fix custom emoji copy from TextWithEntities to clipboard. --- ui/text/text_entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/text/text_entity.cpp b/ui/text/text_entity.cpp index 0dc3676..c4878de 100644 --- a/ui/text/text_entity.cpp +++ b/ui/text/text_entity.cpp @@ -2213,7 +2213,7 @@ TextWithTags::Tags ConvertEntitiesToTextTags( } break; case EntityType::CustomEmoji: { const auto match = QRegularExpression( - "^(\\d+:\\d+)$" + "^(\\d+)$" ).match(entity.data()); if (match.hasMatch()) { push(Ui::InputField::CustomEmojiLink(entity.data()));