Skip to content

Commit

Permalink
Support ~ and % in Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mstg committed Nov 15, 2022
1 parent 29778c7 commit 06ffd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rpmutils/regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package rpmutils
import "regexp"

// Nvr is a regular expression that matches a NVR.
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.rpm)?$")
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.rpm)?$")

0 comments on commit 06ffd1e

Please sign in to comment.