Compare commits

...

2 Commits

Author SHA1 Message Date
resf-prow[bot] 2189a988d4
Merge pull request #184 from rocky-linux/fix-nvr-checks
add ^ as a character for release tag
2024-04-24 20:54:39 +00:00
Louis Abel 0c5227c146
add ^ as a character for release tag 2024-04-24 13:49:44 -07:00
1 changed files with 3 additions and 2 deletions

View File

@ -31,8 +31,9 @@
package rpmutils
import (
"github.com/rocky-linux/srpmproc/pkg/rpmutils"
"regexp"
"github.com/rocky-linux/srpmproc/pkg/rpmutils"
)
var (
@ -48,7 +49,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
}