Skip to content

Commit

Permalink
fix: Address broken rc number conversion (#651)
Browse files Browse the repository at this point in the history
for double digit patch releases

`v1.19.10-rc1` would get converted to `v1.19.11` instead of `v1.19.1001`
  • Loading branch information
GeckoEidechse authored Oct 28, 2023
1 parent 9bbc4fd commit 8f9de6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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", ".")
}

0 comments on commit 8f9de6a

Please sign in to comment.