From: Graham Knop Date: Mon, 26 Jan 2015 23:02:26 +0000 (-0500) Subject: fix test for t/xt/lib/blib to only trigger on directories X-Git-Tag: v1.005006~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7bda951e2e1e9f7ce235459bce6ac6d40633af5a;p=p5sagit%2Fstrictures.git fix test for t/xt/lib/blib to only trigger on directories --- diff --git a/lib/strictures.pm b/lib/strictures.pm index 46ee821..05d7d9f 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -40,7 +40,7 @@ sub import { } $ENV{PERL_STRICTURES_EXTRA}; } elsif (! _PERL_LT_5_8_4) { - !!((caller)[1] =~ /^(?:t|xt|lib|blib)/ + !!((caller)[1] =~ /^(?:t|xt|lib|blib)[\\\/]/ and $Smells_Like_VCS) } };