peridot/vendor/github.com/rocky-linux/srpmproc/pkg/rpmutils/regex.go

7 lines
176 B
Go
Raw Normal View History

2022-07-07 20:11:50 +00:00
package rpmutils
import "regexp"
// Nvr is a regular expression that matches a NVR.
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.rpm)?$")