2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

telegram.me links support added for os x

This commit is contained in:
John Preston
2014-12-03 18:07:24 +03:00
parent 27de201bda
commit 0f414c1d5a
5 changed files with 28 additions and 4 deletions

View File

@@ -1843,7 +1843,7 @@ void MainWidget::start(const MTPUser &user) {
}
void MainWidget::openLocalUrl(const QString &url) {
QRegularExpressionMatch m = QRegularExpression(qsl("^tg://resolve/\\?domain=([a-zA-Z0-9\\.\\_]+)$"), QRegularExpression::CaseInsensitiveOption).match(url.trimmed());
QRegularExpressionMatch m = QRegularExpression(qsl("^tg://resolve/?\\?domain=([a-zA-Z0-9\\.\\_]+)$"), QRegularExpression::CaseInsensitiveOption).match(url.trimmed());
if (m.hasMatch()) {
openUserByName(m.captured(1));
}