Skip to content

Commit

Permalink
fix: limit version len to <15 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrqr authored Feb 8, 2022
1 parent 0ce9865 commit d30d06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func FindTags(repo *Repository, reg *regexp.Regexp) ([]string, error) {
defer tags.Close()

err = tags.ForEach(func(ref *plumbing.Reference) error {
if reg.MatchString(ref.Name().Short()) {
if len(ref.Name().Short()) < 15 && reg.MatchString(ref.Name().Short()) {
matchTags = append(matchTags, ref.Name().Short())
}

Expand Down

0 comments on commit d30d06f

Please sign in to comment.