diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-10-20 00:58:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 00:58:36 +0200 |
commit | 9b4e032b73e3f40c8c4126a25356f467a833d239 (patch) | |
tree | 30d47bffa455e167aa08983cd130aad8ea9114f1 | |
parent | 27121c9b6d4e15dc09a015df808e94fe3b09a424 (diff) | |
download | FlightCore-9b4e032b73e3f40c8c4126a25356f467a833d239.tar.gz FlightCore-9b4e032b73e3f40c8c4126a25356f467a833d239.zip |
fix: Strip leading zeroes from rc version number (#24)
This is more of a hotfix, we should really just use propery regex or
something better instead.
-rw-r--r-- | src-tauri/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index c2007130..b249d519 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -348,7 +348,7 @@ pub fn convert_release_candidate_number(version_number: String) -> String { // This simply converts `-rc` to `0` // Works as intended for RCs < 10, e.g. `v1.9.2-rc1` -> `v1.9.201` // Doesn't work for larger numbers, e.g. `v1.9.2-rc11` -> `v1.9.2011` (should be `v1.9.211`) - version_number.replace("-rc", "0") + version_number.replace("-rc", "0").replace("00", "") } /// Checks if installed FlightCore version is up-to-date |