mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
Remove leading 'v' from latest tag in getLatestTag
Updated the getLatestTag function to strip a leading 'v' character from the latest tag before returning it. This ensures tag values are returned without the 'v' prefix.
This commit is contained in:
@@ -268,7 +268,8 @@ export async function getLatestTag (): Promise<string> {
|
||||
if (!latest) {
|
||||
throw new Error('No tags found');
|
||||
}
|
||||
return latest;
|
||||
// 去掉开头的 v
|
||||
return latest.replace(/^v/, '');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user