Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: more liberal separator for repository names (#425)
This change makes the separators consistent with the implementation in the Docker distribution [here](https://github.com/distribution/distribution/blob/97b1d649c4938d0f608d96454d6a8326b1f96acd/reference/regexp.go#L53). Relevant parts from that code: ``` separator = `(?:[._]|__|[-]+)` pathComponent = alphanumeric + anyTimes(separator+alphanumeric) remoteName = pathComponent + anyTimes(`/`+pathComponent) namePat = optional(domainAndPort+`/`) + remoteName ``` Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
- Loading branch information