Fix chat links with '-' in slug.

Fixes https://bugs.telegram.org/c/41902.
This commit is contained in:
John Preston 2024-07-18 17:14:47 +02:00
parent f8b756d447
commit 4d647e64b7

View file

@ -1268,7 +1268,7 @@ const std::vector<LocalUrlHandler> &LocalUrlHandlers() {
ResolveBoost,
},
{
u"^message/?\\?slug=([a-zA-Z0-9\\.\\_]+)(&|$)"_q,
u"^message/?\\?slug=([a-zA-Z0-9\\.\\_\\-]+)(&|$)"_q,
ResolveChatLink
},
{