Revert "Modify regex to recognize edition from jason #4933"

This reverts commit 2fd0d5c68f.
This commit is contained in:
Jerry (Xinyu Hou) 2015-11-16 09:24:49 -08:00
parent 2fd0d5c68f
commit 97809f9040
1 changed files with 1 additions and 1 deletions

View File

@ -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();