cli / go-gh

A Go module for interacting with gh and the GitHub API from the command line.
https://pkg.go.dev/github.com/cli/go-gh/v2
MIT License
322 stars 45 forks source link

Fix sanitization bug #145

Closed samcoe closed 7 months ago

samcoe commented 7 months ago

Fixes https://github.com/cli/cli/issues/8336

There was a small bug in the logic of the sanitizer where multiple escaped ascii codes in a row would cause invalid JSON to be generated. This PR makes it so this does not happen.