Skip to content

Commit f476aa4

Browse files
Adjust regexp to parse repository in release script.
1 parent 82edfcf commit f476aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/ci/download.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function download() {
1010
throw new Error(`Version mismatch (TRAVIS_TAG=${process.env.TRAVIS_TAG}, version=${version}`)
1111
}
1212

13-
const [, user, repo] = url.match(/\/([a-z0-9_-]+)\/([a-z0-9_-]+)\.git$/i)
13+
const [, user, repo] = url.match(/\/([a-z0-9_.-]+)\/([a-z0-9_.-]+)\.git$/i)
1414

1515
const res = await fetch(`https://api.github.com/repos/${user}/${repo}/releases/tags/v${version}`)
1616
if (!res.ok) {

0 commit comments

Comments
 (0)