From 8557eb073311c34850f27b81e1f09d59f6812a33 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Wed, 4 Dec 2024 23:12:17 +0900 Subject: [PATCH] fix: version check --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 5e6825bf6..bb8ebb448 100644 --- a/src/main.rs +++ b/src/main.rs @@ -677,6 +677,7 @@ impl App { } let split_now_version = &now_version .replace("-dev", "") + .replace("v", "") .split('.') .filter_map(|x| x.parse().ok()) .collect::>(); @@ -684,6 +685,7 @@ impl App { .as_ref() .unwrap_or(now_version) .replace('"', "") + .replace("v", "") .split('.') .filter_map(|x| x.parse().ok()) .collect::>();