Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 06ffd1e

Browse files
committed
Support ~ and % in Release
1 parent 29778c7 commit 06ffd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rpmutils/regex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ package rpmutils
33
import "regexp"
44

55
// Nvr is a regular expression that matches a NVR.
6-
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.rpm)?$")
6+
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.rpm)?$")

0 commit comments

Comments
 (0)