mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Fix NVR regex
This commit is contained in:
parent
e889daa21f
commit
6df2fe1e3f
@ -3,7 +3,7 @@ package rpmutils
|
|||||||
import "regexp"
|
import "regexp"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||||||
epoch = regexp.MustCompile("(\\d+):")
|
epoch = regexp.MustCompile("(\\d+):")
|
||||||
module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$")
|
module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$")
|
||||||
dist = regexp.MustCompile("(\\.el\\d(?:_\\d|))")
|
dist = regexp.MustCompile("(\\.el\\d(?:_\\d|))")
|
||||||
|
Loading…
Reference in New Issue
Block a user