Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update regexp so that any dots inside the given path cannot match here

  • Loading branch information...
commit 125a4584e5b71e19f8cefacb9cafb84f14c258f9 1 parent 54f95f8
Urabe, Shyouhei shyouhei authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/App/envfile.pm
2  lib/App/envfile.pm
View
@@ -53,7 +53,7 @@ sub parse_envfile {
sub _try_any_config_file {
my ($self, $file) = @_;
- my ($ext) = $file =~ /\.(\w+)/;
+ my ($ext) = $file =~ /\.(\w+)$/;
if (my $type = $EXTENTIONS_MAP->{lc($ext || '')}) {
my $env;
if ($type eq 'Perl') {
Please sign in to comment.
Something went wrong with that request. Please try again.