opencontainers / distribution-spec

OCI Distribution Specification
https://opencontainers.org
Apache License 2.0
792 stars 199 forks source link

spec: more liberal separator for repository names #425

Closed rogpeppe closed 1 year ago

rogpeppe commented 1 year ago

This change makes the separators consistent with the implementation in the Docker distribution here.

Relevant parts from that code:

separator = `(?:[._]|__|[-]+)`
pathComponent = alphanumeric + anyTimes(separator+alphanumeric)
remoteName = pathComponent + anyTimes(`/`+pathComponent)
namePat    = optional(domainAndPort+`/`) + remoteName