diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-10-28 22:52:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 22:52:22 +0200 |
commit | 8f9de6a8d60500e8b3f9f0188c44a382010408c9 (patch) | |
tree | 50e06b48a28f0df8b17a8a51b095ed690cb0c758 /src-tauri/src | |
parent | 9bbc4fdd7268c5707d63001b056e094ef4d1af0d (diff) | |
download | FlightCore-8f9de6a8d60500e8b3f9f0188c44a382010408c9.tar.gz FlightCore-8f9de6a8d60500e8b3f9f0188c44a382010408c9.zip |
fix: Address broken rc number conversion (#651)
for double digit patch releases
`v1.19.10-rc1` would get converted to `v1.19.11` instead of `v1.19.1001`
Diffstat (limited to 'src-tauri/src')
-rw-r--r-- | src-tauri/src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/util.rs b/src-tauri/src/util.rs index 75555f3e..0b91da48 100644 --- a/src-tauri/src/util.rs +++ b/src-tauri/src/util.rs @@ -232,5 +232,5 @@ 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").replace("00", "") + version_number.replace("-rc", "0").replace(".00", ".") } |