mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Support t.me/$slug invoice links.
This commit is contained in:
parent
8c5d919d23
commit
ea3084aea5
1 changed files with 2 additions and 2 deletions
|
@ -871,8 +871,8 @@ QString TryConvertUrlToLocal(QString url) {
|
|||
return qsl("tg://socks?") + socksMatch->captured(1);
|
||||
} else if (auto proxyMatch = regex_match(qsl("^proxy/?\\?(.+)(#|$)"), query, matchOptions)) {
|
||||
return qsl("tg://proxy?") + proxyMatch->captured(1);
|
||||
} else if (auto invoiceMatch = regex_match(qsl("^invoice/([a-zA-Z0-9]+)(\\?|#|$)"), query, matchOptions)) {
|
||||
return qsl("tg://invoice?slug=") + invoiceMatch->captured(1);
|
||||
} else if (auto invoiceMatch = regex_match(qsl("^(invoice/|\\$)([a-zA-Z0-9]+)(\\?|#|$)"), query, matchOptions)) {
|
||||
return qsl("tg://invoice?slug=") + invoiceMatch->captured(2);
|
||||
} else if (auto bgMatch = regex_match(qsl("^bg/([a-zA-Z0-9\\.\\_\\-\\~]+)(\\?(.+)?)?$"), query, matchOptions)) {
|
||||
const auto params = bgMatch->captured(3);
|
||||
const auto bg = bgMatch->captured(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue