Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sanitization bug #145

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Fix sanitization bug #145

merged 1 commit into from
Nov 20, 2023

Conversation

samcoe
Copy link
Contributor

@samcoe samcoe commented Nov 20, 2023

Fixes cli/cli#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.

@samcoe samcoe self-assigned this Nov 20, 2023
@samcoe samcoe marked this pull request as ready for review November 20, 2023 14:02
Copy link
Contributor

@andyfeller andyfeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@samcoe samcoe merged commit d32c104 into trunk Nov 20, 2023
10 checks passed
@samcoe samcoe deleted the sanitization-bug branch November 20, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewing a specific issue returns the error invalid character '^' in string escape code
2 participants