Skip to content

Commit

Permalink
git: Be bit more strict about tag versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Oct 21, 2024
1 parent b574088 commit a6d2819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/filter/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ https://github.com/git/git.git|*

// default ref filter
// refs/tags/<non-digits><version-number> -> version-number
var refFilterRe = regexp.MustCompile(`^refs/tags/[^\d]*([\d\.\-]+)$`)
var refFilterRe = regexp.MustCompile(`^refs/tags/[[:alpha:]]*([\d\.\-]+)$`)

// New git filter
func New(prefix string, arg string) (filter filter.Filter, err error) {
Expand Down

0 comments on commit a6d2819

Please sign in to comment.