From 47d5e54c48deaa30f7d9d4cd217254840e2fb5be Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 30 Nov 2018 13:25:08 +0400 Subject: [PATCH] Fix t.me/username links with upper-case letters. --- 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 0740d8d154..b4bfe00a49 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -172,7 +172,7 @@ bool ResolveUsername(const Match &match, const QVariant &context) { const auto domain = params.value(qsl("domain")); const auto valid = [](const QString &domain) { return qthelp::regex_match( - qsl("^[a-z0-9\\.\\_]+$"), + qsl("^[a-zA-Z0-9\\.\\_]+$"), domain, {} ).valid();