Add more ignored channels for context menu twitch links (#3352)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Felanbird 2021-11-14 07:21:17 -05:00 committed by GitHub
parent a68980878e
commit c19fd0d332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1934,8 +1934,21 @@ void ChannelView::addContextMenuItems(
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?:popout\/)?(?<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", "directory", //
"inventory", "payments", "subscriptions", "messages", "drops", "downloads", //
"drops", //
"friends", //
"inventory", //
"jobs", //
"messages", //
"payments", //
"profile", //
"security", //
"settings", //
"subscriptions", //
"turbo", //
"videos", //
"wallet", //
}; };
auto twitchMatch = auto twitchMatch =