Skip to content

Commit

Permalink
fix: properly decode client version
Browse files Browse the repository at this point in the history
  • Loading branch information
KolbyML committed Jan 23, 2025
1 parent 998966b commit 5edd1b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl FromStr for ClientInfo {

let client_name = parts[0];

let Some((client_version, short_commit)) = parts[1].split('-').collect_tuple() else {
let Some((client_version, short_commit)) = parts[1].rsplit_once('-') else {
bail!(
"Invalid client info string: should look like 0.1.1-2b00d730 got {}",
parts[1]
Expand Down

0 comments on commit 5edd1b1

Please sign in to comment.