Skip to content

Commit

Permalink
less strict extract pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Dec 9, 2021
1 parent 7b483f8 commit 5c7a152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type SemverExtractStrategy struct {
AllowPrereleases bool
}

var extractPattern = regexp.MustCompile(`<([a-zA-Z0-9\-_]+)>`)
var extractPattern = regexp.MustCompile(`<([^>]+)>`)

func (p Policy) Parse(version string, prefix string, suffix string) (*[]string, error) {
unpackedVersion := version
Expand Down

0 comments on commit 5c7a152

Please sign in to comment.