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: Fix ANSI color sequences escaping #7211

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

zirkome
Copy link
Contributor

@zirkome zirkome commented Nov 12, 2021

This fixes a bug where an empty regex applied to all log lines would prefix every characters with \u001b[1m\u001b[43;1m\u001b[37m\u001b[0m (normally used to wrapped RegExp matches for highlighting). This bug removes any formatting made using ANSI color sequences.

Before:
image

After:
image

Fixes #7189

Signed-off-by: Guillaume Fillon guillaume.fillon@auth0.com

@zirkome zirkome requested a review from simster7 November 12, 2021 16:33
Signed-off-by: Guillaume Fillon <guillaume.fillon@auth0.com>
@zirkome
Copy link
Contributor Author

zirkome commented Nov 15, 2021

I'm setting this PR as ready for review, it seems like the only failing check is due to some flakiness which I can't retry.

@zirkome zirkome marked this pull request as ready for review November 15, 2021 16:01
@simster7 simster7 merged commit eb9a428 into argoproj:master Nov 15, 2021
@zirkome zirkome deleted the fix-wf-ansi-colors branch November 16, 2021 09:37
@alexec alexec mentioned this pull request Nov 17, 2021
25 tasks
alexec pushed a commit that referenced this pull request Nov 17, 2021
Signed-off-by: Guillaume Fillon <guillaume.fillon@auth0.com>
@sarabala1979 sarabala1979 mentioned this pull request Dec 15, 2021
73 tasks
@sarabala1979 sarabala1979 mentioned this pull request Mar 1, 2022
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.

ANSI Escape Characters not interpreted in Web UI logs
2 participants