reference: remove left-over occurrences of "short-identifier"

This was removed in 6d4f62d7fd, which forgot
to remove it from the grammar.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-11-11 00:29:58 +01:00
parent 8163e20c6f
commit 2bf5e1879e
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -23,7 +23,6 @@
// digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value // digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value
// //
// identifier := /[a-f0-9]{64}/ // identifier := /[a-f0-9]{64}/
// short-identifier := /[a-f0-9]{6,64}/
package reference package reference
import ( import (
@ -188,7 +187,6 @@ func SplitHostname(named Named) (string, string) {
// Parse parses s and returns a syntactically valid Reference. // Parse parses s and returns a syntactically valid Reference.
// If an error was encountered it is returned, along with a nil 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) { func Parse(s string) (Reference, error) {
matches := ReferenceRegexp.FindStringSubmatch(s) matches := ReferenceRegexp.FindStringSubmatch(s)
if matches == nil { 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 // the Named interface. The reference must have a name and be in the canonical
// form, otherwise an error is returned. // form, otherwise an error is returned.
// If an error was encountered it is returned, along with a nil Reference. // 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) { func ParseNamed(s string) (Named, error) {
named, err := ParseNormalizedNamed(s) named, err := ParseNormalizedNamed(s)
if err != nil { if err != nil {