Skip to content

Commit

Permalink
Update depreciated regex syntax to perl 5.26
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Jan 10, 2019
1 parent cbc7591 commit fe029ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Dimob/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ sub evaluate_parameters {
my $config = $self->config;

for my $param (keys $config) {
if($config->{$param} =~ /{{.+}}/) {
$config->{$param} =~ s/{{([\w_]+)}}/$config->{$1}/eg;
if($config->{$param} =~ /\{\{.+\}\}/) {
$config->{$param} =~ s/\{\{([\w_]+)\}\}/$config->{$1}/eg;

}
}
Expand All @@ -96,8 +96,8 @@ sub expand_directory {
my $cfg = $self->config;

# Expand filename
if($filename =~ /{{.+}}/) {
$filename =~ s/{{([\w_]+)}}/$cfg->{$1}/eg;
if($filename =~ /\{\{.+\}\}/) {
$filename =~ s/\{\{([\w_]+)\}\}/$cfg->{$1}/eg;
}

return $filename
Expand Down

1 comment on commit fe029ce

@innovate-invent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit fixes #5

Please sign in to comment.