From 3da015f8aaa8653690917031108bd45a2bed5cfa Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Mon, 24 Apr 2017 15:14:12 -0700 Subject: [PATCH] reference: allow more than 1 digest algorithm separator This updates the grammar to allow more than one digest algorithm separator, matching the regular expression and intended grammar. Signed-off-by: Stephen J Day --- reference/reference.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/reference.go b/reference/reference.go index fd3510e9..2f66cca8 100644 --- a/reference/reference.go +++ b/reference/reference.go @@ -15,7 +15,7 @@ // tag := /[\w][\w.-]{0,127}/ // // digest := digest-algorithm ":" digest-hex -// digest-algorithm := digest-algorithm-component [ digest-algorithm-separator digest-algorithm-component ] +// digest-algorithm := digest-algorithm-component [ digest-algorithm-separator digest-algorithm-component ]* // digest-algorithm-separator := /[+.-_]/ // digest-algorithm-component := /[A-Za-z][A-Za-z0-9]*/ // digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value