From 8ef7325e16c825e80401a197e5008ed7f42180f7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 31 Jan 2022 16:13:21 +0300 Subject: [PATCH] No confirmation for graph.org / te.legra.ph domains. --- Telegram/SourceFiles/core/click_handler_types.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/click_handler_types.cpp b/Telegram/SourceFiles/core/click_handler_types.cpp index 5cbdea5530..4d75788cf7 100644 --- a/Telegram/SourceFiles/core/click_handler_types.cpp +++ b/Telegram/SourceFiles/core/click_handler_types.cpp @@ -61,7 +61,13 @@ bool UrlRequiresConfirmation(const QUrl &url) { using namespace qthelp; return !regex_match( - "(^|\\.)(telegram\\.(org|me|dog)|t\\.me|telegra\\.ph|telesco\\.pe)$", + "(^|\\.)(" + "telegram\\.(org|me|dog)" + "|t\\.me" + "|te\\.?legra\\.ph" + "|graph\\.org" + "|telesco\\.pe" + ")$", url.host(), RegExOption::CaseInsensitive); }