From 0b5038aaa2f66c688f8157cd00a549dc8bb30e37 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 21 Apr 2023 14:10:19 +0400 Subject: [PATCH] Fix t.me channel comment links opening. Regression was introduced in af51307aa6. --- Telegram/SourceFiles/core/local_url_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp index fe9b262109..5ef839888e 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -1034,7 +1034,7 @@ QString TryConvertUrlToLocal(QString url) { "(" "/?\\?|" "/?$|" - "/[a-zA-Z0-9\\.\\_]+|" + "/[a-zA-Z0-9\\.\\_]+/?(\\?|$)|" "/\\d+/?(\\?|$)|" "/\\d+/\\d+/?(\\?|$)" ")"_q, query, matchOptions)) {