mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-25 18:28:53 +01:00
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:
@@ -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