MCPcopy
hub / github.com/cli/cli / quote

Function quote

pkg/search/query.go:279–284  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

277}
278
279func quote(s string) string {
280 if strings.ContainsAny(s, " \"\t\r\n") {
281 return fmt.Sprintf("%q", s)
282 }
283 return s
284}
285
286// formatQualifiers renders qualifiers into a plain query.
287//

Callers 4

formatSpecialQualifiersFunction · 0.85
groupWithORFunction · 0.85
formatQualifiersFunction · 0.85
formatKeywordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected