mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added more ignored words for opening new split from context menu.
This commit is contained in:
parent
dec8283cdd
commit
bd04aa0074
|
@ -1254,7 +1254,7 @@ void ChannelView::addContextMenuItems(
|
||||||
QGuiApplication::clipboard()->setText(copyString);
|
QGuiApplication::clipboard()->setText(copyString);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Join to channel
|
// Open in new split.
|
||||||
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_]+))",
|
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?<username>[a-z0-9_]+))",
|
||||||
|
@ -1262,6 +1262,13 @@ void ChannelView::addContextMenuItems(
|
||||||
static QSet<QString> ignoredUsernames{
|
static QSet<QString> ignoredUsernames{
|
||||||
"videos",
|
"videos",
|
||||||
"settings",
|
"settings",
|
||||||
|
"directory",
|
||||||
|
"jobs",
|
||||||
|
"friends",
|
||||||
|
"inventory",
|
||||||
|
"payments",
|
||||||
|
"subscriptions",
|
||||||
|
"messages",
|
||||||
};
|
};
|
||||||
|
|
||||||
auto twitchMatch =
|
auto twitchMatch =
|
||||||
|
|
Loading…
Reference in a new issue