-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
util: update ansi regex #54865
util: update ansi regex #54865
Conversation
I would prefer to have a test |
@marco-ippolito it is tested in the library. We could of course copy those tests but I believe in this case, that's not necessary, WDYT? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #54865 +/- ##
==========================================
- Coverage 87.91% 87.90% -0.01%
==========================================
Files 651 651
Lines 183354 183357 +3
Branches 35719 35717 -2
==========================================
- Hits 161190 161181 -9
- Misses 15446 15459 +13
+ Partials 6718 6717 -1
|
8e61a1f
to
e6efbd3
Compare
I've split this into two commits. One for fixing the regex, and the other for adding the tests. |
// Ref: https://github.com/chalk/ansi-regex/blob/f338e1814144efb950276aac84135ff86b72dc8e/index.js | ||
// License: MIT by Sindre Sorhus <sindresorhus@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review note: I've changed this from an authors list, as the number of authors has grown since this was last updated.
CC @sindresorhus to make sure this is appropiate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
e6efbd3
to
3c24916
Compare
Failed to start CI⚠ Something was pushed to the Pull Request branch since the last approving review. ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/10782645643 |
CI LGTM |
Can this land? |
CI is red |
Oh okay, can you resume? |
PR-URL: #54865 Refs: chalk/ansi-regex#58 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #54865 Refs: chalk/ansi-regex#58 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 5b3f3c5...9416354 |
Fixes #53697
Ref: chalk/ansi-regex#58