MCPcopy Create free account
hub / github.com/cli/cli / comparableDestination

Function comparableDestination

internal/attachments/references.go:442–444  ·  view source on GitHub ↗

comparableDestination reduces a destination goldmark reported to the single form used to decide whether a run of source is the node it came from. Percent encoding is left as written, since goldmark reports it unchanged and both sides of every comparison therefore carry it.

(dest string)

Source from the content-addressed store, hash-verified

440// encoding is left as written, since goldmark reports it unchanged and both
441// sides of every comparison therefore carry it.
442func comparableDestination(dest string) string {
443 return unescapePunctuation(dest)
444}
445
446// comparableSource reduces a destination read straight from the source to that
447// same form. It still carries the syntax goldmark had already removed: the

Callers 4

scanMarkdownRefsFunction · 0.85
linkReferenceDefinitionsFunction · 0.85
comparableSourceFunction · 0.85
linkReferenceDestinationFunction · 0.85

Calls 1

unescapePunctuationFunction · 0.85

Tested by

no test coverage detected