mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Improved 'twitchChannelRegex' regexp.
This commit is contained in:
parent
bd04aa0074
commit
3e268637f0
|
@ -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\/(?<username>[a-z0-9_]+))",
|
||||
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?<username>[a-z0-9_]{3,}))",
|
||||
QRegularExpression::CaseInsensitiveOption);
|
||||
static QSet<QString> ignoredUsernames{
|
||||
"videos",
|
||||
|
|
Loading…
Reference in a new issue