Skip to content

Commit

Permalink
Allow hyphens in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyghost committed Feb 2, 2024
1 parent 77a8e74 commit b609f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ func downloadReleaseAssets(target *Target, release *github.RepositoryRelease) (t
return
}

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

Expand Down

0 comments on commit b609f97

Please sign in to comment.