Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] quick fix for CSI Pm m removal.

  • Loading branch information...
commit 0bb0164a7014a61cb891b4181b94f39e2e334a5d 1 parent e42e0fb
@chjj chjj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/winston/logger.js
View
2  lib/winston/logger.js
@@ -172,7 +172,7 @@ Logger.prototype.log = function (level, msg) {
// see: http://en.wikipedia.org/wiki/ANSI_escape_code
//
if (this.stripColors) {
- var code = /\u001b\[\d+m/g;
+ var code = /\u001b\[\d+(?:;\d+)*m/g;
msg = ('' + msg).replace(code, '');
}
Please sign in to comment.
Something went wrong with that request. Please try again.