mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-18 20:30:08 +08: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
d31f0a45b4
commit
f9c0b9d106
@ -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