X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FConfigLoader.pm;h=865aada9cdc0ab2b4f6b5c621a5522a0039ec78a;hb=eb76defed4549925a43eaef88375d59ac75d415c;hp=efb80b414f0b667d053f807441eb90cbca68674a;hpb=32c7af257f98dbcbfdb73dbaa97c6648e021cef0;p=catagits%2FCatalyst-Plugin-ConfigLoader.git diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index efb80b4..865aada 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -8,7 +8,7 @@ use MRO::Compat; use Data::Visitor::Callback; use Catalyst::Utils (); -our $VERSION = '0.26'; +our $VERSION = '0.31'; =head1 NAME @@ -183,7 +183,7 @@ sub get_config_path { || $c->config->{ 'Plugin::ConfigLoader' }->{ file } || $c->path_to( $prefix ); - my ( $extension ) = ( $path =~ m{\.(.{1,4})$} ); + my ( $extension ) = ( $path =~ m{\.([^\/\\.]{1,4})$} ); if ( -d $path ) { $path =~ s{[\/\\]$}{}; @@ -273,8 +273,8 @@ sub finalize_config { =head2 config_substitutions( $value ) -This method substitutes macros found with calls to a function. There are three -default macros: +This method substitutes macros found with calls to a function. There are a +number of default macros: =over 4 @@ -356,7 +356,7 @@ Work to this module has been generously sponsored by: =head1 COPYRIGHT AND LICENSE -Copyright 2006-2009 by Brian Cassidy +Copyright 2006-2010 by Brian Cassidy This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.