From 06ffd1e50796ee3a1f769d70a1526a8589cdb798 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Tue, 15 Nov 2022 15:14:59 +0100 Subject: [PATCH] Support ~ and % in Release --- pkg/rpmutils/regex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpmutils/regex.go b/pkg/rpmutils/regex.go index 477d7f8..3c8f266 100644 --- a/pkg/rpmutils/regex.go +++ b/pkg/rpmutils/regex.go @@ -3,4 +3,4 @@ package rpmutils import "regexp" // Nvr is a regular expression that matches a NVR. -var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.rpm)?$") +var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.rpm)?$")