Skip to content

Commit

Permalink
fix: version check
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Dec 4, 2024
1 parent b4a2ac5 commit 8557eb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,13 +677,15 @@ impl App {
}
let split_now_version = &now_version
.replace("-dev", "")
.replace("v", "")
.split('.')
.filter_map(|x| x.parse().ok())
.collect::<Vec<i8>>();
let split_latest_version = &latest_version_data
.as_ref()
.unwrap_or(now_version)
.replace('"', "")
.replace("v", "")
.split('.')
.filter_map(|x| x.parse().ok())
.collect::<Vec<i8>>();
Expand Down

0 comments on commit 8557eb0

Please sign in to comment.