From 6df2fe1e3f47bca16d96209d2e5cb985c4f2b5f3 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Tue, 10 May 2022 16:32:31 +0200 Subject: [PATCH] Fix NVR regex --- 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 90c59fb..ed711a3 100644 --- a/pkg/rpmutils/regex.go +++ b/pkg/rpmutils/regex.go @@ -3,7 +3,7 @@ package rpmutils import "regexp" var ( - Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$") + Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$") epoch = regexp.MustCompile("(\\d+):") module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$") dist = regexp.MustCompile("(\\.el\\d(?:_\\d|))")