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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@
- Minor: Add clear cache button to cache settings section (#3277)
- Minor: Added `flags.first_message` filter variable (#3292)
- Minor: Removed duplicate setting for toggling `Channel Point Redeemed Message` highlights (#3296)
- Minor: Added support for opening channels from twitch.tv/popout links. (#3309)
- Minor: Clean up chat messages of special line characters prior to sending. (#3312)
- Minor: Added button & label for copying login name of user instead of display name in the user info popout. (#3335)
- Bugfix: Fixed colored usernames sometimes not working. (#3170)

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",