Skip to content

Commit

Permalink
trim v on version check (#3039)
Browse files Browse the repository at this point in the history
close #3034
  • Loading branch information
6543 authored Dec 27, 2023
1 parent eefa64e commit af3b35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/compositions/useVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export function useVersion() {
if (usesNext) {
latest = versionInfo.next;
} else if (current.includes('rc')) {
latest = versionInfo.rc;
latest = versionInfo.rc.replace(/^v/, '');
} else {
latest = versionInfo.latest;
latest = versionInfo.latest.replace(/^v/, '');
}
}

Expand Down

0 comments on commit af3b35f

Please sign in to comment.