Skip to content

Commit

Permalink
I submitted a PR to ansi-colors proposing this change: doowb/ansi-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Apr 12, 2022
1 parent 684c2cf commit 6209254
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ansi-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ const identity = val => val;
const ANSI_REGEX = /[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g;

const create = () => {
const colors = { enabled: true, visible: true, styles: {}, keys: {} };

// if ('FORCE_COLOR' in process.env) {
// colors.enabled = process.env.FORCE_COLOR !== '0';
// }
const colors = {
enabled: process.env.FORCE_COLOR !== '0',
visible: true,
styles: {},
keys: {}
};

const ansi = style => {
let open = style.open = `\u001b[${style.codes[0]}m`;
Expand Down

0 comments on commit 6209254

Please sign in to comment.