Skip to content

Commit

Permalink
Handle dot paths better
Browse files Browse the repository at this point in the history
  • Loading branch information
Leont committed Jun 25, 2016
1 parent 0ec71da commit f9bbf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Build/Graph/Variable/Wildcard.pm
Expand Up @@ -14,7 +14,7 @@ sub new {
my $self = $class->SUPER::new(%args);
$self->{pattern} = $args{pattern} || Carp::croak('No pattern is given');
$self->{pattern} = qr/$self->{pattern}/ if not ref $self->{pattern} eq 'Regexp';
@{ $self->{dir} } = ref($args{dir}) ? @{ $args{dir} } : File::Spec->splitdir($args{dir});
@{ $self->{dir} } = ref($args{dir}) ? @{ $args{dir} } : $args{dir} eq File::Spec->curdir ? () : File::Spec->splitdir(File::Spec->canonpath($args{dir}));
return $self;
}

Expand Down

0 comments on commit f9bbf0d

Please sign in to comment.