From 3e268637f01283379a99298575428b39dd7420cd Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 13 Oct 2018 17:32:01 +0300 Subject: [PATCH] Improved 'twitchChannelRegex' regexp. --- src/widgets/helper/ChannelView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 575d4f35..8f9ff291 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1257,7 +1257,7 @@ void ChannelView::addContextMenuItems( // Open in new split. if (hoveredElement->getLink().type == Link::Url) { static QRegularExpression twitchChannelRegex( - R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?[a-z0-9_]+))", + R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?[a-z0-9_]{3,}))", QRegularExpression::CaseInsensitiveOption); static QSet ignoredUsernames{ "videos",