fix(fmt): make printf respect NO_COLOR (#3595)

This commit is contained in:
Lino Le Van 2023-09-01 14:38:32 +12:00 committed by GitHub
parent 12d3b01d42
commit 717b7cc3cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -907,7 +907,7 @@ class Printf {
*/
fmtI(val: unknown, compact: boolean): string {
return Deno.inspect(val, {
colors: true,
colors: !Deno?.noColor,
compact,
depth: Infinity,
iterableLimit: Infinity,