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 ff9c417 commit 9683891Copy full SHA for 9683891
cmd/readmevalidation/repostructure.go
@@ -14,7 +14,7 @@ import (
14
var supportedUserNameSpaceDirectories = append(supportedResourceTypes, ".images")
15
16
// validNameRe validates that names contain only alphanumeric characters and hyphens
17
-var validNameRe = regexp.MustCompile(`^[a-zA-Z0-9-]+$`)
+var validNameRe = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`)
18
19
20
// validateCoderResourceSubdirectory validates that the structure of a module or template within a namespace follows all
0 commit comments