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

Function sanitizedReader

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

Source from the content-addressed store, hash-verified

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

Callers 2

diffRunFunction · 0.85
Test_sanitizedReaderFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_sanitizedReaderFunction · 0.68