mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 23:19:37 +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:
parent
8e99ba976b
commit
633314e246
@ -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/, '');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user