]> Dogcows Code - chaz/git-codeowners/blobdiff - lib/App/Codeowners/Formatter/String.pm
Version 0.44
[chaz/git-codeowners] / lib / App / Codeowners / Formatter / String.pm
index 6303fb5f428c0eb8df74db6b6d438c21fe69acfa..15ebeda1366a65f005bd3d4be0e3b4d6646a3246 100644 (file)
@@ -5,7 +5,7 @@ package App::Codeowners::Formatter::String;
 use warnings;
 use strict;
 
-our $VERSION = '0.43'; # VERSION
+our $VERSION = '0.44'; # VERSION
 
 use parent 'App::Codeowners::Formatter';
 
@@ -54,7 +54,7 @@ sub _colored {
     my $text = shift;
     my $rgb  = shift or return $text;
 
-    return $text if $ENV{NO_COLOR};
+    return $text if $ENV{NO_COLOR} || (defined $ENV{COLOR_DEPTH} && !$ENV{COLOR_DEPTH});
 
     $rgb =~ s/^(.)(.)(.)$/$1$1$2$2$3$3/;
     if ($rgb !~ m/^[0-9a-fA-F]{6}$/) {
@@ -136,7 +136,7 @@ App::Codeowners::Formatter::String - Format codeowners output using printf-like
 
 =head1 VERSION
 
-version 0.43
+version 0.44
 
 =head1 DESCRIPTION
 
This page took 0.025932 seconds and 4 git commands to generate.