Commit ec65bee
committed
fix(colors): only print colors if NO_COLOR is non-empty string
from <https://no-color.org/>:
> Command-line software which adds ANSI color to its output by default
> should check for a NO_COLOR environment variable that, when present
> and **not an empty string** (regardless of its value), prevents the
> addition of ANSI color.
(emphasis mine)
if NO_COLOR is an empty string, color should still be printed.1 parent 4fa73db commit ec65bee
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments