We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the ANSI sequence is directly wrapped in brackets the brackets are removed from the output.
require 'strings-ansi' str1 = "[\e[1;34mINFO\e[m] Scanning for projects..." str2 = "[ \e[1;34mINFO\e[m ] Scanning for projects..." puts str1 puts str2 puts Strings::ANSI.sanitize(str1) puts Strings::ANSI.sanitize(str2)
[INFO] Scanning for projects... [ INFO ] Scanning for projects... INFO Scanning for projects... [ INFO ] Scanning for projects...
[INFO] Scanning for projects... [ INFO ] Scanning for projects... [INFO] Scanning for projects... [ INFO ] Scanning for projects...
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the problem
When the ANSI sequence is directly wrapped in brackets the brackets are removed from the output.
Steps to reproduce the problem
Actual behaviour
Expected behaviour
Describe your environment
The text was updated successfully, but these errors were encountered: