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

Function squeeze

api/query_builder.go:10–17  ·  view source on GitHub ↗
(r rune)

Source from the content-addressed store, hash-verified

8)
9
10func squeeze(r rune) rune {
11 switch r {
12 case '\n', '\t':
13 return -1
14 default:
15 return r
16 }
17}
18
19func shortenQuery(q string) string {
20 return strings.Map(squeeze, q)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected