fix test for t/xt/lib/blib to only trigger on directories
Graham Knop [Mon, 26 Jan 2015 23:02:26 +0000 (18:02 -0500)]
lib/strictures.pm

index 46ee821..05d7d9f 100644 (file)
@@ -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)
     }
   };