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.
2 parents 0cb8346 + 8b8bdb3 commit b45a6faCopy full SHA for b45a6fa
routers/api/packages/pypi/pypi.go
@@ -23,7 +23,7 @@ import (
23
24
// https://www.python.org/dev/peps/pep-0503/#normalized-names
25
var normalizer = strings.NewReplacer(".", "-", "_", "-")
26
-var nameMatcher = regexp.MustCompile(`\A[a-z0-9\.\-_]+\z`)
+var nameMatcher = regexp.MustCompile(`\A[a-zA-Z0-9\.\-_]+\z`)
27
28
// https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
29
var versionMatcher = regexp.MustCompile(`^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$`)
0 commit comments