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

Function trimAngles

internal/attachments/references.go:455–460  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

453}
454
455func trimAngles(s string) string {
456 if len(s) >= 2 && s[0] == '<' && s[len(s)-1] == '>' {
457 return s[1 : len(s)-1]
458 }
459 return s
460}
461
462// unescapePunctuation drops the backslash from every backslash-escaped ASCII
463// punctuation character, which is how markdown spells a literal one.

Callers 1

comparableSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected