1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-05 10:20:36 +02:00

trim v on version check (#3039)

close #3034
This commit is contained in:
6543 2023-12-27 15:17:18 +01:00 committed by GitHub
parent eefa64e2d4
commit af3b35f06a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/, '');
}
}