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.
chalk.stripColor
1 parent 6a583e8 commit 4dc6bcfCopy full SHA for 4dc6bcf
lib/concordance-options.js
@@ -1,6 +1,7 @@
1
'use strict';
2
const ansiStyles = require('ansi-styles');
3
const chalk = require('chalk');
4
+const stripAnsi = require('strip-ansi');
5
const cloneDeepWith = require('lodash.clonedeepwith');
6
const reactPlugin = require('@concordance/react');
7
const options = require('./globals').options;
@@ -119,7 +120,7 @@ const colorTheme = {
119
120
121
const plainTheme = cloneDeepWith(colorTheme, value => {
122
if (typeof value === 'string') {
- return chalk.stripColor(value);
123
+ return stripAnsi(value);
124
}
125
});
126
0 commit comments