mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 09:47:36 +00: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:
commit
be8a4d1841
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ struct SemanticVersion
|
||||||
static SemanticVersion fromString(const QString &ver) {
|
static SemanticVersion fromString(const QString &ver) {
|
||||||
SemanticVersion version;
|
SemanticVersion version;
|
||||||
|
|
||||||
if (ver.contains("Beta")) {
|
if (ver.contains("beta")) {
|
||||||
QRegularExpression verRe("Beta-(?<minor>\\d+)");
|
QRegularExpression verRe("beta-(?<minor>\\d+)");
|
||||||
QRegularExpressionMatch match = verRe.match(ver);
|
QRegularExpressionMatch match = verRe.match(ver);
|
||||||
version.minor = match.captured("minor").toInt();
|
version.minor = match.captured("minor").toInt();
|
||||||
return version;
|
return version;
|
||||||
|
|
Loading…
Reference in a new issue