Skip to content

Commit

Permalink
fix: remove duplicated v in version showing in the banner (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
baurine authored Dec 29, 2023
1 parent c736225 commit 473bf80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ function parseVersion(i: InfoInfoResponse, t: TFunction) {
}
if (i.version.internal_version) {
// e.g. v2020.07.01.1
return `v${i.version.internal_version}`
if (i.version.internal_version.startsWith('v')) {
return i.version.internal_version
} else {
return `v${i.version.internal_version}`
}
}
return null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ function parseVersion(i: InfoInfoResponse, t: TFunction) {
}
if (i.version.internal_version) {
// e.g. v2020.07.01.1
return `v${i.version.internal_version}`
if (i.version.internal_version.startsWith('v')) {
return i.version.internal_version
} else {
return `v${i.version.internal_version}`
}
}
return null
}
Expand Down

0 comments on commit 473bf80

Please sign in to comment.