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

Always escape special characters in string diffs #850

Merged
merged 2 commits into from
Feb 21, 2022

Conversation

papandreou
Copy link
Member

I ran into a failing build where a diff of strings containing ansi codes was less than helpful: https://github.com/unexpectedjs/magicpen-prism/runs/5255055332?check_suite_focus=true

I took a look, and it seems like we just don't propagate the markUpSpecialCharacters flag in some cases. I think this is a bug.

Before

2before

After

2after

Here's a slightly simplified case that illustrates it:

Before

before

After

after

@papandreou papandreou self-assigned this Feb 20, 2022
Copy link
Member

@sunesimonsen sunesimonsen left a comment

Choose a reason for hiding this comment

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

🥇

@papandreou papandreou merged commit d6a6e49 into master Feb 21, 2022
@papandreou papandreou deleted the feature/ansiInDiff branch February 21, 2022 11:32
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.

None yet

2 participants