Skip to content

Commit

Permalink
Escape deprecated braces in regex; caused warnings in Perl 5.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lavin committed Sep 25, 2015
1 parent f1dde34 commit 17bac54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Vend/Ship.pm
Expand Up @@ -979,7 +979,7 @@ sub shipping {
}
$label =~ s/(%(.))/exists $subst{$2} ? $subst{$2} : $1/eg;
#::logDebug("label intermediate: $label");
$label =~ s/(\$O{(.*?)})/$o->{$2}/eg;
$label =~ s/(\$O\{(.*?)\})/$o->{$2}/eg;
#::logDebug("label returning: $label");
return $label;
}
Expand Down

0 comments on commit 17bac54

Please sign in to comment.