mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Support ~ and % in Release
This commit is contained in:
parent
29778c7ea2
commit
06ffd1e507
@ -3,4 +3,4 @@ package rpmutils
|
|||||||
import "regexp"
|
import "regexp"
|
||||||
|
|
||||||
// Nvr is a regular expression that matches a NVR.
|
// 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)?$")
|
||||||
|
Loading…
Reference in New Issue
Block a user