Author: Honza Pokorny <me@honza.ca>
Permit dots in labels This is especially relevant in tags. E.g. "v0.1.0" now matches
pkg/smithy/smithy.go | 2 +-
diff --git a/pkg/smithy/smithy.go b/pkg/smithy/smithy.go index b05f70b100c2b027eda0e26497061961e9305a5c..3cba1f6c63bbb9789deb9774bba2c9ba80706433 100644 --- a/pkg/smithy/smithy.go +++ b/pkg/smithy/smithy.go @@ -670,7 +670,7 @@ func CompileRoutes() []Route { // Label is either a repo, a ref // A filepath is a list of labels - label := `[a-zA-Z0-9\-~]+` + label := `[a-zA-Z0-9\-~\.]+` indexUrl := regexp.MustCompile(`^/$`) repoIndexUrl := regexp.MustCompile(`^/(?P<repo>` + label + `)$`)