Revert "Modify regex to recognize edition from jason #4933"
This reverts commit 2fd0d5c68f
.
This commit is contained in:
parent
2fd0d5c68f
commit
97809f9040
|
@ -50,7 +50,7 @@ int WebClient::getEdition(
|
||||||
if (resultRegex.exactMatch(responseJson)) {
|
if (resultRegex.exactMatch(responseJson)) {
|
||||||
QString boolString = resultRegex.cap(1);
|
QString boolString = resultRegex.cap(1);
|
||||||
if (boolString == "true") {
|
if (boolString == "true") {
|
||||||
QRegExp editionRegex(".*\"edition\":(0|1|2|3).*");
|
QRegExp editionRegex(".*\"edition\".*:.*\"([^\"]+)\".*");
|
||||||
if (editionRegex.exactMatch(responseJson)) {
|
if (editionRegex.exactMatch(responseJson)) {
|
||||||
QString e = editionRegex.cap(1);
|
QString e = editionRegex.cap(1);
|
||||||
edition = e.toInt();
|
edition = e.toInt();
|
||||||
|
|
Loading…
Reference in New Issue