Support ~ and % in Release

This commit is contained in:
Mustafa Gezen 2022-11-15 15:14:59 +01:00
parent 29778c7ea2
commit 06ffd1e507
Signed by: mustafa
GPG Key ID: DCDF010D946438C1
1 changed files with 1 additions and 1 deletions

View File

@ -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)?$")