Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored May 14, 2024
1 parent 6639f94 commit d214277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const format = (open, close) => {
// Handle nested colors.

// We could have done this, but it's too slow (as of Node.js 22).
// return openCode + string.replaceAll(closeCode, resetCode) + closeCode;
// return openCode + string.replaceAll(closeCode, openCode) + closeCode;

let result = openCode;
let lastIndex = 0;
Expand Down

0 comments on commit d214277

Please sign in to comment.