Skip to content

Commit

Permalink
Merge pull request opencontainers#221 from x1022as/descriptor
Browse files Browse the repository at this point in the history
fix typo and regular expression of algorithim
  • Loading branch information
Stephen Day authored Sep 9, 2016
2 parents 5a0447a + 75a51ed commit 5553ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion descriptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The digest string matches the following grammar:

```
digest := algorithm ":" hex
algorithm := /[A-Fa-f0-9_+.-]+/
algorithm := /[a-z0-9_+.-]+/
hex := /[A-Fa-f0-9]+/
```

Expand Down
2 changes: 1 addition & 1 deletion schema/defs-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"digest": {
"description": "the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'",
"type": "string",
"pattern": "^[a-z0-9]+:[a-fA-F0-9]+$"
"pattern": "^[a-z0-9_+.-]+:[a-fA-F0-9]+$"
},
"manifestDescriptor": {
"id": "https://opencontainers.org/schema/image/manifestDescriptor",
Expand Down

0 comments on commit 5553ed5

Please sign in to comment.