mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added support for opening channels from twitch.tv/popout links. (#3309)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
a40677f4cd
commit
7f4b73910a
|
@ -27,6 +27,7 @@
|
||||||
- Minor: Add clear cache button to cache settings section (#3277)
|
- Minor: Add clear cache button to cache settings section (#3277)
|
||||||
- Minor: Added `flags.first_message` filter variable (#3292)
|
- Minor: Added `flags.first_message` filter variable (#3292)
|
||||||
- Minor: Removed duplicate setting for toggling `Channel Point Redeemed Message` highlights (#3296)
|
- 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: 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)
|
- 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)
|
- Bugfix: Fixed colored usernames sometimes not working. (#3170)
|
||||||
|
|
|
@ -1931,7 +1931,7 @@ void ChannelView::addContextMenuItems(
|
||||||
if (hoveredElement->getLink().type == Link::Url)
|
if (hoveredElement->getLink().type == Link::Url)
|
||||||
{
|
{
|
||||||
static QRegularExpression twitchChannelRegex(
|
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);
|
QRegularExpression::CaseInsensitiveOption);
|
||||||
static QSet<QString> ignoredUsernames{
|
static QSet<QString> ignoredUsernames{
|
||||||
"videos", "settings", "directory", "jobs", "friends",
|
"videos", "settings", "directory", "jobs", "friends",
|
||||||
|
|
Loading…
Reference in a new issue