Skip to content

Commit 1c45dc2

Browse files
Update modules/packages/arch/metadata.go
Co-authored-by: wxiaoguang <[email protected]>
1 parent bbeee09 commit 1c45dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/packages/arch/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var (
4545
// https://man.archlinux.org/man/PKGBUILD.5
4646
namePattern = regexp.MustCompile(`\A[a-zA-Z0-9@._+-]+\z`)
4747
// (epoch:pkgver-pkgrel)
48-
versionPattern = regexp.MustCompile(`\A(?:[0-9]:)?[a-zA-Z0-9._+~]+(?:-[a-zA-Z0-9.+-_~]+)?\z`)
48+
versionPattern = regexp.MustCompile(`\A(?:[\d]:)?[\w.+~]+(?:-[-\w.+~]+)?\z`)
4949
)
5050

5151
type Package struct {

0 commit comments

Comments
 (0)