Skip to content

Use node:util stripVTControlCharacters instead of own code#2486

Merged
shadowspawn merged 1 commit intotj: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 intotj:release/15.xfrom
shadowspawn:use-node-for-strip

Conversation

@shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Feb 21, 2026

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending release Merged into a branch for a future release, but not released yet 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