Skip to content

Commit

Permalink
feat(git): 檢測目前分支名稱來判斷要下載的版本
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jul 27, 2022
1 parent e651f96 commit a1de2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/download-original-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default Bluebird.resolve()

if (name?.length > 0)
{
let m = /^v(\d+)(?:\.(?:\d+))?$/.exec(name);
let m = /^(?:releases\/)?v(\d+)(?:\.(?:\d+))?$/.exec(name);

return internalDownload(m?.[1])
}
Expand Down

0 comments on commit a1de2b0

Please sign in to comment.