Subject: | CHI::Driver::File typo in get_keys() function |
Micro patch, no comments:
--- /home/tvv/.staticperl/cpan/build/CHI-0.52-WWxqXK/lib/CHI/Driver/
File.pm 2012-03-08 11:58:09.000000000 +0400
+++ /home/tvv/.staticperl/lib/CHI/Driver/File.pm 2012-04-11
12:41:10.000000000 +0400
@@ -138,7 +138,8 @@ sub get_keys {
my ($self) = @_;
my @filepaths;
- my $wanted = sub { push( @filepaths, $_ ) if -f && /\.dat$/ };
+ my $re = quotemeta($self->file_extension);
+ my $wanted = sub { push( @filepaths, $_ ) if -f && /${re}$/ };
my @keys = $self->_collect_keys_via_file_find( \@filepaths,
$wanted );
return @keys;
}