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

Function trimAngles

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

Source from the content-addressed store, hash-verified

416}
417
418func trimAngles(s string) string {
419 if len(s) >= 2 && s[0] == '<' && s[len(s)-1] == '>' {
420 return s[1 : len(s)-1]
421 }
422 return s
423}
424
425// unescapePunctuation drops the backslash from every backslash-escaped ASCII
426// 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