Commit 3b2c4e01 authored by Dan Abramov's avatar Dan Abramov
Browse files

Remove stripColor() usage

parent 406ab6c3
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 2 additions and 1 deletion
+2 -1
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
'use strict'; 'use strict';
const chalk = require('chalk'); const chalk = require('chalk');
const stripAnsi = require('strip-ansi');
const table = require('text-table'); const table = require('text-table');
function isError(message) { function isError(message) {
...@@ -65,7 +66,7 @@ function formatter(results) { ...@@ -65,7 +66,7 @@ function formatter(results) {
let outputTable = table(messages, { let outputTable = table(messages, {
align: ['l', 'l', 'l'], align: ['l', 'l', 'l'],
stringLength(str) { stringLength(str) {
return chalk.stripColor(str).length; return stripAnsi(str).length;
}, },
}); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment