Skip to content

Commit

Permalink
fix regular expression of algorithim
Browse files Browse the repository at this point in the history
change regular expression of algorithim in defs-image.json to:
	"pattern": "^[a-z0-9_+.-]+"
and make descriptor.md consistent with it.

Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
  • Loading branch information
Deng Guangxing committed Sep 9, 2016
1 parent 9a93cca commit 75a51ed
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 75a51ed

Please sign in to comment.