From 8f9de6a8d60500e8b3f9f0188c44a382010408c9 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sat, 28 Oct 2023 22:52:22 +0200 Subject: 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` --- src-tauri/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-tauri') 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", ".") } -- cgit v1.2.3