Skip to content

Commit b609f97

Browse files
committed
Allow hyphens in filenames
1 parent 77a8e74 commit b609f97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

updater.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ func downloadReleaseAssets(target *Target, release *github.RepositoryRelease) (t
150150
return
151151
}
152152

153-
const tarGzRegexFmt = `^%s-[\w.]+\.tar\.gz$`
154-
const sigRegexFmt = `^%s-[\w.]+\.minisig$`
153+
const tarGzRegexFmt = `^%s-[\w.-]+\.tar\.gz$`
154+
const sigRegexFmt = `^%s-[\w.-]+\.minisig$`
155155
tarGzRegex := regexp.MustCompile(fmt.Sprintf(tarGzRegexFmt, target.Repo))
156156
sigRegex := regexp.MustCompile(fmt.Sprintf(sigRegexFmt, target.Repo))
157157

0 commit comments

Comments
 (0)