mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Allow trailing slash in newbot link.
This commit is contained in:
@@ -1912,7 +1912,7 @@ QString TryConvertUrlToLocal(QString url) {
|
||||
} else if (const auto callMatch = regex_match(u"^call/([a-zA-Z0-9\\.\\_\\-]+)(\\?|$)"_q, query, matchOptions)) {
|
||||
const auto slug = callMatch->captured(1);
|
||||
return u"tg://call?slug="_q + slug;
|
||||
} else if (const auto newbotMatch = regex_match(u"^newbot/([a-zA-Z0-9\\.\\_]+)(/([a-zA-Z0-9\\.\\_]+))?(/?\\?(.+))?$"_q, query, matchOptions)) {
|
||||
} else if (const auto newbotMatch = regex_match(u"^newbot/([a-zA-Z0-9\\.\\_]+)(/([a-zA-Z0-9\\.\\_]*))?(/?\\?(.+))?$"_q, query, matchOptions)) {
|
||||
const auto manager = newbotMatch->captured(1);
|
||||
const auto username = newbotMatch->captured(3);
|
||||
const auto params = newbotMatch->captured(5);
|
||||
|
||||
Reference in New Issue
Block a user