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

Function sanitizedReader

pkg/cmd/pr/diff/diff.go:358–360  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

356}
357
358func sanitizedReader(r io.Reader) io.Reader {
359 return transform.NewReader(r, &asciisanitizer.Sanitizer{})
360}
361
362var diffHeaderRegexp = regexp.MustCompile(`(?:^|\n)diff\s--git.*\s("?)b/(.*)`)
363

Callers 2

diffRunFunction · 0.85
Test_sanitizedReaderFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_sanitizedReaderFunction · 0.68