Skip to content

Commit 9683891

Browse files
Update cmd/readmevalidation/repostructure.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ff9c417 commit 9683891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/readmevalidation/repostructure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
var supportedUserNameSpaceDirectories = append(supportedResourceTypes, ".images")
1515

1616
// validNameRe validates that names contain only alphanumeric characters and hyphens
17-
var validNameRe = regexp.MustCompile(`^[a-zA-Z0-9-]+$`)
17+
var validNameRe = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`)
1818

1919

2020
// validateCoderResourceSubdirectory validates that the structure of a module or template within a namespace follows all

0 commit comments

Comments
 (0)