Ver código fonte

UI: Fix invalid escape sequences in regex string

jp9000 6 anos atrás
pai
commit
34af51d095
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      UI/window-extra-browsers.cpp

+ 1 - 1
UI/window-extra-browsers.cpp

@@ -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) {