mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +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) {
|
if (!latest) {
|
||||||
throw new Error('No tags found');
|
throw new Error('No tags found');
|
||||||
}
|
}
|
||||||
return latest;
|
// 去掉开头的 v
|
||||||
|
return latest.replace(/^v/, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user