Skip to content

Commit

Permalink
Fix a thinko in filtering excluded module files
Browse files Browse the repository at this point in the history
If we got a regexp ref, use it as it. Otherwise quote the string in a regexp.
  • Loading branch information
rafl committed Jul 6, 2011
1 parent 8b2227e commit 394fdf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Porting/Maintainers.pm
Expand Up @@ -22,7 +22,7 @@ use vars qw(@ISA @EXPORT_OK $VERSION);
show_results process_options files_to_modules
finish_tap_output
reload_manifest);
$VERSION = 0.05;
$VERSION = 0.06;

require Exporter;

Expand Down Expand Up @@ -94,7 +94,7 @@ sub filter_excluded {
unless my $excluded = $Modules{$m}{EXCLUDED};

my ($pat) = map { qr/$_/ } join '|' => map {
ref $_ ? qr/\Q$_\E/ : $_
ref $_ ? $_ : qr/\Q$_\E/
} @{ $excluded };

return grep { $_ !~ $pat } @files;
Expand Down

0 comments on commit 394fdf7

Please sign in to comment.