From a6702b64c7aceb711d109540b617eb3ec7cff556 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 8 Feb 2017 11:37:27 -0800 Subject: [PATCH] specs-go/v1/layout: Remove RefsRegexp The restriction on names was removed by 0556a6be (image-layout: ./refs/ -> index.json, 2017-01-26, #533) and the replacement (org.opencontainers.ref.name) has no equivalent limitation. Signed-off-by: W. Trevor King --- specs-go/v1/layout.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/specs-go/v1/layout.go b/specs-go/v1/layout.go index b3a9fb134..c1c7a7870 100644 --- a/specs-go/v1/layout.go +++ b/specs-go/v1/layout.go @@ -14,8 +14,6 @@ package v1 -import "regexp" - // ImageLayoutVersion is the version of ImageLayout const ImageLayoutVersion = "1.0.0" @@ -24,8 +22,3 @@ const ImageLayoutVersion = "1.0.0" type ImageLayout struct { Version string `json:"imageLayoutVersion"` } - -var ( - // RefsRegexp matches requirement of image-layout 'refs' charset. - RefsRegexp = regexp.MustCompile(`^[a-zA-Z0-9-._]+$`) -)