mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-29 21:40:57 +00:00
Allow ^ in version (NVR)
This commit is contained in:
parent
10aab151d5
commit
978deeb4e4
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ var (
|
|||
|
||||
func NVR() *regexp.Regexp {
|
||||
if nvr == nil {
|
||||
nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||||
nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+^]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||||
}
|
||||
return nvr
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ func NVRNoArch() *regexp.Regexp {
|
|||
|
||||
func NVRUnusualRelease() *regexp.Regexp {
|
||||
if nvrUnusualRelease == nil {
|
||||
nvrUnusualRelease = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||||
nvrUnusualRelease = regexp.MustCompile("^(\\S+)-([\\w~%.+^]+)-(\\w+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||||
}
|
||||
return nvrUnusualRelease
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue