Added support for opening channels from twitch.tv/popout links. (#3309)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2021-11-06 13:43:03 +00:00
committed by GitHub
parent a40677f4cd
commit 7f4b73910a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1931,7 +1931,7 @@ void ChannelView::addContextMenuItems(
if (hoveredElement->getLink().type == Link::Url)
{
static QRegularExpression twitchChannelRegex(
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?<username>[a-z0-9_]{3,}))",
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?:popout\/)?(?<username>[a-z0-9_]{3,}))",
QRegularExpression::CaseInsensitiveOption);
static QSet<QString> ignoredUsernames{
"videos", "settings", "directory", "jobs", "friends",