Skip to content

New Common::stripColors() method - #445

Merged
jrfnl merged 1 commit into
masterfrom
feature/new-common-stripcolors-method
Apr 23, 2024
Merged

jrfnl merged 1 commit into
masterfrom
feature/new-common-stripcolors-method

Conversation

@jrfnl

@jrfnl jrfnl commented Apr 13, 2024

Copy link
Copy Markdown
Member

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.

@rodrigoprimo rodrigoprimo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@fredden fredden left a comment

Copy link
Copy Markdown
Member

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

jrfnl commented Apr 23, 2024

Copy link
Copy Markdown
Member Author

Rebased without changes. Merging once the build passes.

@jrfnl
jrfnl merged commit ae2993c into master Apr 23, 2024
@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