mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-22 22:15:21 -04:00
UI: Fix invalid escape sequences in regex string
This commit is contained in:
1 parent
769e5f3f78
commit
d41536cf02
1 file changed
+1
-1
@@ -536,7 +536,7 @@ void OBSBasic::AddExtraBrowserDock(const QString &title, const QString &url,
|
||||
/* Add support for Twitch Dashboard panels */
|
||||
if (url.contains("twitch.tv/popout") &&
|
||||
url.contains("dashboard/live")) {
|
||||
QRegularExpression re("twitch.tv\/popout\/([^/]+)\/");
|
||||
QRegularExpression re("twitch.tv\\/popout\\/([^/]+)\\/");
|
||||
QRegularExpressionMatch match = re.match(url);
|
||||
QString username = match.captured(1);
|
||||
if (username.length() > 0) {
|
||||
|
||||
Reference in new issue
Block a user