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

Remove incorrect ANSI escape code for LF #13345

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented Oct 7, 2016

ANSI technically doesn't have an escape code for LF, since it just uses the 0x0A character. The regex \xA is incorrect (it should be \x0A) and is being treated as the two-character sequence "xA". But then once we've fixed that, replacing 0x0A with \n in removeAnsiEscapeCodes is a no-op. Better to just remove the str.replace(LF, '\n') call.

Fixes #12608.

ANSI technically doesn't have an escape code for LF, since it just uses the 0x0A character. The regex \xA is incorrect (it should be \x0A) and is being treated as the two-character sequence "xA". But then once we've fixed that, replacing 0x0A with \n in removeAnsiEscapeCodes is a no-op. Better to just remove the str.replace(LF, '\n') call.

Fixes microsoft#12608.
@mention-bot
Copy link

@rmunn, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bpasero, @egamma and @alexandrudima to be potential reviewers.

@msftclas
Copy link

msftclas commented Oct 7, 2016

Hi @rmunn, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@isidorn isidorn added this to the October 2016 milestone Oct 7, 2016
@isidorn isidorn self-assigned this Oct 7, 2016
@isidorn isidorn merged commit d90ca30 into microsoft:master Oct 7, 2016
@isidorn
Copy link
Contributor

isidorn commented Oct 7, 2016

Awesome - thanks!
🍻

@rmunn rmunn deleted the fix-12608 branch October 8, 2016 14:52
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output window handles ANSI newline escape sequence incorrectly
4 participants