Skip to content

Commit

Permalink
Fix NVR regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mstg committed May 10, 2022
1 parent e889daa commit 6df2fe1
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,7 +3,7 @@ package rpmutils
import "regexp"

var (
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
epoch = regexp.MustCompile("(\\d+):")
module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$")
dist = regexp.MustCompile("(\\.el\\d(?:_\\d|))")
Expand Down

0 comments on commit 6df2fe1

Please sign in to comment.