From 97809f9040b28351190f7278f251672470d25b7f Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Mon, 16 Nov 2015 09:24:49 -0800 Subject: [PATCH] Revert "Modify regex to recognize edition from jason #4933" This reverts commit 2fd0d5c68f70ede82f11b7084de143ce70a73422. --- src/gui/src/WebClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/src/WebClient.cpp b/src/gui/src/WebClient.cpp index cd07b882a..451bf47f9 100644 --- a/src/gui/src/WebClient.cpp +++ b/src/gui/src/WebClient.cpp @@ -50,7 +50,7 @@ int WebClient::getEdition( if (resultRegex.exactMatch(responseJson)) { QString boolString = resultRegex.cap(1); if (boolString == "true") { - QRegExp editionRegex(".*\"edition\":(0|1|2|3).*"); + QRegExp editionRegex(".*\"edition\".*:.*\"([^\"]+)\".*"); if (editionRegex.exactMatch(responseJson)) { QString e = editionRegex.cap(1); edition = e.toInt();