Skip to content

Commit

Permalink
specs-go/v1/layout: Remove RefsRegexp
Browse files Browse the repository at this point in the history
The restriction on names was removed by 0556a6b (image-layout:
./refs/ -> index.json, 2017-01-26, opencontainers#533) and the replacement
(org.opencontainers.ref.name) has no equivalent limitation.

Signed-off-by: W. Trevor King <[email protected]>
  • Loading branch information
wking committed Feb 8, 2017
1 parent 145870b commit a6702b6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions specs-go/v1/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

package v1

import "regexp"

// ImageLayoutVersion is the version of ImageLayout
const ImageLayoutVersion = "1.0.0"

Expand All @@ -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-._]+$`)
)

0 comments on commit a6702b6

Please sign in to comment.