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

New Common::stripColors() method #445

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 13, 2024

Description

This commit introduces a new static Common::stripColors() method to allow for stripping CLI color codes from an arbitrary text.

Includes starting to use the function in a few places.

Includes unit tests.

Suggested changelog entry

N/A This method is intended for internal use.

Copy link
Contributor

@rodrigoprimo rodrigoprimo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@fredden fredden left a comment

Choose a reason for hiding this comment

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

Abstracting this common functionality makes sense. Thanks for covering it with tests too.

This commit introduces a new static `Common::stripColors()` method to allow for stripping CLI color codes from an arbitrary text.

Includes starting to use the function in a few places.

Includes unit tests.
@jrfnl jrfnl force-pushed the feature/new-common-stripcolors-method branch from 2f83594 to 9c8f30f Compare April 23, 2024 22:00
@jrfnl
Copy link
Member Author

jrfnl commented Apr 23, 2024

Rebased without changes. Merging once the build passes.

@jrfnl jrfnl merged commit ae2993c into master Apr 23, 2024
48 checks passed
@jrfnl jrfnl deleted the feature/new-common-stripcolors-method branch April 23, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants