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) { if (usesNext) {
latest = versionInfo.next; latest = versionInfo.next;
} else if (current.includes('rc')) { } else if (current.includes('rc')) {
latest = versionInfo.rc; latest = versionInfo.rc.replace(/^v/, '');
} else { } else {
latest = versionInfo.latest; latest = versionInfo.latest.replace(/^v/, '');
} }
} }