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(cli-repl): improve explicit display of special characters in output MONGOSH-1910 #2330

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

addaleax
Copy link
Contributor

Escape control characters in output strings if there's a reasonable chance that their are (partially) coming from the server side, instead of printing them directly. We keep printing them directly when it's reasonably possible that they are being used intentionally for output control, e.g. when coming from print() or console.log() statements.

MONGOSH-1910

Escape control characters in output strings if there's a reasonable chance that
their are (partially) coming from the server side, instead of printing them directly.
We keep printing them directly when it's reasonably possible that they are being used
intentionally for output control, e.g. when coming from `print()` or `console.log()`
statements.
@addaleax addaleax merged commit 9e7d980 into main Jan 28, 2025
135 checks passed
@addaleax addaleax deleted the 1910-dev branch January 28, 2025 13:42
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.

3 participants