From c5e200ea0614b732d408e216a1912a9c6637d31f Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 27 May 2021 06:20:27 +0200 Subject: [PATCH] Fix semantic versioning beta handling --- src/utils/SemanticVersion.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/SemanticVersion.h b/src/utils/SemanticVersion.h index 02ece73..0bcf033 100644 --- a/src/utils/SemanticVersion.h +++ b/src/utils/SemanticVersion.h @@ -64,8 +64,8 @@ struct SemanticVersion static SemanticVersion fromString(const QString &ver) { SemanticVersion version; - if (ver.contains("Beta")) { - QRegularExpression verRe("Beta-(?\\d+)"); + if (ver.contains("beta")) { + QRegularExpression verRe("beta-(?\\d+)"); QRegularExpressionMatch match = verRe.match(ver); version.minor = match.captured("minor").toInt(); return version;