We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbeee09 commit 1c45dc2Copy full SHA for 1c45dc2
modules/packages/arch/metadata.go
@@ -45,7 +45,7 @@ var (
45
// https://man.archlinux.org/man/PKGBUILD.5
46
namePattern = regexp.MustCompile(`\A[a-zA-Z0-9@._+-]+\z`)
47
// (epoch:pkgver-pkgrel)
48
- versionPattern = regexp.MustCompile(`\A(?:[0-9]:)?[a-zA-Z0-9._+~]+(?:-[a-zA-Z0-9.+-_~]+)?\z`)
+ versionPattern = regexp.MustCompile(`\A(?:[\d]:)?[\w.+~]+(?:-[-\w.+~]+)?\z`)
49
)
50
51
type Package struct {
0 commit comments