diff --git a/pkg/rpmutils/regex.go b/pkg/rpmutils/regex.go index cafd7d1..477d7f8 100644 --- a/pkg/rpmutils/regex.go +++ b/pkg/rpmutils/regex.go @@ -2,6 +2,5 @@ package rpmutils import "regexp" -var ( - Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$") -) +// Nvr is a regular expression that matches a NVR. +var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.rpm)?$")