Skip to content

Commit

Permalink
Don’t assume CI on Windows supports Unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 29, 2023
1 parent c80c691 commit 0c24cc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export default function isUnicodeSupported() {
return process.env.TERM !== 'linux'; // Linux console (kernel)
}

return Boolean(process.env.CI)
|| Boolean(process.env.WT_SESSION) // Windows Terminal
return Boolean(process.env.WT_SESSION) // Windows Terminal
|| Boolean(process.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|| process.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|| process.env.TERM_PROGRAM === 'Terminus-Sublime'
Expand Down

0 comments on commit 0c24cc6

Please sign in to comment.