Fix semantic versioning beta handling

This commit is contained in:
tobtoht 2021-05-27 06:20:27 +02:00
parent f92aaa861c
commit c5e200ea06
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -64,8 +64,8 @@ struct SemanticVersion
static SemanticVersion fromString(const QString &ver) {
SemanticVersion version;
if (ver.contains("Beta")) {
QRegularExpression verRe("Beta-(?<minor>\\d+)");
if (ver.contains("beta")) {
QRegularExpression verRe("beta-(?<minor>\\d+)");
QRegularExpressionMatch match = verRe.match(ver);
version.minor = match.captured("minor").toInt();
return version;