mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Fix semantic versioning beta handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user