diff options
Diffstat (limited to 'node_modules/supports-color/index.js')
-rw-r--r-- | node_modules/supports-color/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/supports-color/index.js b/node_modules/supports-color/index.js index 83644e26b..20a29230e 100644 --- a/node_modules/supports-color/index.js +++ b/node_modules/supports-color/index.js @@ -64,7 +64,7 @@ let supportLevel = (() => { } if ('CI' in env) { - if ('TRAVIS' in env || env.CI === 'Travis' || 'CIRCLECI' in env) { + if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { return 1; } @@ -89,11 +89,11 @@ let supportLevel = (() => { } } - if (/^(screen|xterm)-256(?:color)?/.test(env.TERM)) { + if (/-256(color)?$/i.test(env.TERM)) { return 2; } - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(env.TERM)) { + if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { return 1; } |