mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-12 23:01:05 +00:00
fix(resolve): strip 'v' prefix from version for API compatibility
This commit is contained in:
parent
6c0d4f4f16
commit
c8e58e0476
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,8 @@ export function registerResolve(program: Command) {
|
|||
|
||||
let targetNamespace = namespace;
|
||||
let targetSlug = skillSlug;
|
||||
const specifiedVersion = opts.skillVersion;
|
||||
// Strip 'v' prefix if present (both 1.0.0 and v1.0.0 should work)
|
||||
const specifiedVersion = opts.skillVersion?.replace(/^v/, "");
|
||||
|
||||
// Case 1: User specified a version
|
||||
if (specifiedVersion) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue