Permalink
Browse files

[fix] quick fix for CSI Pm m removal.

  • Loading branch information...
1 parent e42e0fb commit 0bb0164a7014a61cb891b4181b94f39e2e334a5d @chjj chjj committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/winston/logger.js
View
@@ -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, '');
}

0 comments on commit 0bb0164

Please sign in to comment.