Merge pull request 'Fix semantic versioning beta handling' (#363) from tobtoht/feather:fix_semver into master

Reviewed-on: https://git.featherwallet.org/feather/feather/pulls/363
This commit is contained in:
tobtoht 2021-05-27 04:22:19 +00:00
commit be8a4d1841

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;