Skip to content

Use node:util stripVTControlCharacters instead of own code - #2486

Merged
shadowspawn merged 1 commit into
tj:release/15.xfrom
shadowspawn:use-node-for-strip
Mar 7, 2026
Merged

Use node:util stripVTControlCharacters instead of own code#2486
shadowspawn merged 1 commit into
tj:release/15.xfrom
shadowspawn:use-node-for-strip

Conversation

@shadowspawn

@shadowspawn shadowspawn commented Feb 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

I wrote my own stripColor, but discovered that node has had stripVTControlCharacters from Node 16.11.0

Solution

Use stripVTControlCharacters. Easy!

This will strip some special sequences that the custom code did not, so include in a semver major version.

ChangeLog

  • Changed: using node:util stripVTControlCharacters() for stripping control characters from help when needed

@shadowspawn shadowspawn added the semver: major Releasing requires a major version bump, not backwards compatible label Feb 21, 2026
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Mar 7, 2026
@shadowspawn
shadowspawn merged commit 373f660 into tj:release/15.x Mar 7, 2026
9 checks passed
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label May 29, 2026
@shadowspawn

Copy link
Copy Markdown
Collaborator Author

@shadowspawn
shadowspawn deleted the use-node-for-strip branch May 29, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver: major Releasing requires a major version bump, not backwards compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants