MCPcopy
hub / github.com/cli/cli / RemoveExcessiveWhitespace

Function RemoveExcessiveWhitespace

internal/text/text.go:30–32  ·  view source on GitHub ↗

RemoveExcessiveWhitespace returns a copy of the string s with excessive whitespace removed.

(s string)

Source from the content-addressed store, hash-verified

28
29// RemoveExcessiveWhitespace returns a copy of the string s with excessive whitespace removed.
30func RemoveExcessiveWhitespace(s string) string {
31 return whitespaceRE.ReplaceAllString(strings.TrimSpace(s), " ")
32}
33
34func DisplayWidth(s string) int {
35 return text.DisplayWidth(s)

Callers 14

printDiscussionsFunction · 0.92
listRunFunction · 0.92
displayResultsFunction · 0.92
displayIssueResultsFunction · 0.92
displayResultsFunction · 0.92
PrintIssuesFunction · 0.92
printTableFunction · 0.92
TruncDescriptionMethod · 0.92
listRunFunction · 0.92
truncateDescriptionFunction · 0.92
ResolveMethod · 0.92
listRunFunction · 0.92

Calls

no outgoing calls

Tested by 1