Skip to content

Commit 4dc6bcf

Browse files
sindresorhuskevva
authored andcommitted
Don’t use chalk.stripColor
To prepare for Chalk v2
1 parent 6a583e8 commit 4dc6bcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/concordance-options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
const ansiStyles = require('ansi-styles');
33
const chalk = require('chalk');
4+
const stripAnsi = require('strip-ansi');
45
const cloneDeepWith = require('lodash.clonedeepwith');
56
const reactPlugin = require('@concordance/react');
67
const options = require('./globals').options;
@@ -119,7 +120,7 @@ const colorTheme = {
119120

120121
const plainTheme = cloneDeepWith(colorTheme, value => {
121122
if (typeof value === 'string') {
122-
return chalk.stripColor(value);
123+
return stripAnsi(value);
123124
}
124125
});
125126

0 commit comments

Comments
 (0)