mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-22 02:38:30 +00:00
Merge pull request #184 from rocky-linux/fix-nvr-checks
add ^ as a character for release tag
This commit is contained in:
commit
2189a988d4
@ -31,8 +31,9 @@
|
|||||||
package rpmutils
|
package rpmutils
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/rocky-linux/srpmproc/pkg/rpmutils"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
|
"github.com/rocky-linux/srpmproc/pkg/rpmutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -48,7 +49,7 @@ var (
|
|||||||
|
|
||||||
func NVR() *regexp.Regexp {
|
func NVR() *regexp.Regexp {
|
||||||
if nvr == nil {
|
if nvr == nil {
|
||||||
nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+^]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+^]+)-(\\w+(?:\\.[\\w~%+^]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
||||||
}
|
}
|
||||||
return nvr
|
return nvr
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user