Browse Source

Fix semantic versioning beta handling

master^2
tobtoht 6 months ago
parent
commit
c5e200ea06
Signed by untrusted user: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 4
      src/utils/SemanticVersion.h

4
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-(?<minor>\\d+)");
if (ver.contains("beta")) {
QRegularExpression verRe("beta-(?<minor>\\d+)");
QRegularExpressionMatch match = verRe.match(ver);
version.minor = match.captured("minor").toInt();
return version;

Loading…
Cancel
Save