From 0c5227c146036669c1c077342fcdb19e6733371b Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 24 Apr 2024 13:49:44 -0700 Subject: [PATCH] add ^ as a character for release tag --- apollo/rpmutils/regex.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apollo/rpmutils/regex.go b/apollo/rpmutils/regex.go index a85f6c8..b6cf1c6 100644 --- a/apollo/rpmutils/regex.go +++ b/apollo/rpmutils/regex.go @@ -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 }