We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52d1db7 + 28c39e3 commit db9f235Copy full SHA for db9f235
lib/cli-table/utils.js
@@ -77,7 +77,7 @@ exports.options = options;
77
// see: http://en.wikipedia.org/wiki/ANSI_escape_code
78
//
79
exports.strlen = function(str){
80
- var code = /\u001b\[(?:\d*;){0,2}\d*m/g;
+ var code = /\u001b\[(?:\d*;){0,5}\d*m/g;
81
var stripped = ("" + str).replace(code,'');
82
var split = stripped.split("\n");
83
return split.reduce(function (memo, s) { return (s.length > memo) ? s.length : memo }, 0);
0 commit comments