Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 446281996
  • Loading branch information
gvisor-bot committed May 3, 2022
1 parent 0025af5 commit 6077c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runsc/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const cgroupParentAnnotation = "dev.gvisor.spec.cgroup-parent"
// validateID validates the container id.
func validateID(id string) error {
// See libcontainer/factory_linux.go.
idRegex := regexp.MustCompile(`^[\w+-\.]+$`)
idRegex := regexp.MustCompile(`^[\w+\.-]+$`)
if !idRegex.MatchString(id) {
return fmt.Errorf("invalid container id: %v", id)
}
Expand Down

0 comments on commit 6077c1c

Please sign in to comment.