Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
invoke the callable, sorear++
  • Loading branch information
FROGGS committed Jun 30, 2013
1 parent b7bbd67 commit b6d197f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Str.pm
Expand Up @@ -636,7 +636,7 @@ my class Str does Stringy {
$result ~= self.substr($prev, $m.from - $prev);

my $real_replacement = ~($replacement ~~ Callable
?? ($replacement.count == 0 ?? $replacement !! $replacement($m))
?? ($replacement.count == 0 ?? $replacement() !! $replacement($m))
!! $replacement);
$real_replacement = $real_replacement.samecase(~$m) if $samecase;
$real_replacement = $real_replacement.samespace(~$m) if $samespace;
Expand Down

0 comments on commit b6d197f

Please sign in to comment.