Skip to content

Commit 000a279

Browse files
committed
specs-go/v1/layout: Remove RefsRegexp
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.
1 parent 145870b commit 000a279

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

specs-go/v1/layout.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
package v1
1616

17-
import "regexp"
18-
1917
// ImageLayoutVersion is the version of ImageLayout
2018
const ImageLayoutVersion = "1.0.0"
2119

@@ -24,8 +22,3 @@ const ImageLayoutVersion = "1.0.0"
2422
type ImageLayout struct {
2523
Version string `json:"imageLayoutVersion"`
2624
}
27-
28-
var (
29-
// RefsRegexp matches requirement of image-layout 'refs' charset.
30-
RefsRegexp = regexp.MustCompile(`^[a-zA-Z0-9-._]+$`)
31-
)

0 commit comments

Comments
 (0)