From 2bf5e1879e9c6c702b8d509b2636a91f71465ee0 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 11 Nov 2022 00:29:58 +0100 Subject: [PATCH] reference: remove left-over occurrences of "short-identifier" This was removed in 6d4f62d7fdfa25bd4bb42a18995c50aeededc0d6, which forgot to remove it from the grammar. Signed-off-by: Sebastiaan van Stijn --- reference/reference.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/reference/reference.go b/reference/reference.go index 3499fbf8..b6113642 100644 --- a/reference/reference.go +++ b/reference/reference.go @@ -23,7 +23,6 @@ // digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value // // identifier := /[a-f0-9]{64}/ -// short-identifier := /[a-f0-9]{6,64}/ package reference import ( @@ -188,7 +187,6 @@ func SplitHostname(named Named) (string, string) { // Parse parses s and returns a syntactically valid Reference. // If an error was encountered it is returned, along with a nil Reference. -// NOTE: Parse will not handle short digests. func Parse(s string) (Reference, error) { matches := ReferenceRegexp.FindStringSubmatch(s) if matches == nil { @@ -240,7 +238,6 @@ func Parse(s string) (Reference, error) { // the Named interface. The reference must have a name and be in the canonical // form, otherwise an error is returned. // If an error was encountered it is returned, along with a nil Reference. -// NOTE: ParseNamed will not handle short digests. func ParseNamed(s string) (Named, error) { named, err := ParseNormalizedNamed(s) if err != nil {