X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FApp%2FCodeowners%2FFormatter%2FString.pm;fp=lib%2FApp%2FCodeowners%2FFormatter%2FString.pm;h=15ebeda1366a65f005bd3d4be0e3b4d6646a3246;hb=c7fd400a7054264da00dd2b950850848f7c4e590;hp=6303fb5f428c0eb8df74db6b6d438c21fe69acfa;hpb=8449a6dac8b4adf0e20bceecbff921d6dc598701;p=chaz%2Fgit-codeowners diff --git a/lib/App/Codeowners/Formatter/String.pm b/lib/App/Codeowners/Formatter/String.pm index 6303fb5..15ebeda 100644 --- a/lib/App/Codeowners/Formatter/String.pm +++ b/lib/App/Codeowners/Formatter/String.pm @@ -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