Skip to content
Browse files

invoke the callable, sorear++

  • Loading branch information...
1 parent b7bbd67 commit b6d197f35d82cde63b41797fb3515c35e3891d2d @FROGGS FROGGS committed Jun 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Str.pm
View
2 src/core/Str.pm
@@ -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;

0 comments on commit b6d197f

Please sign in to comment.
Something went wrong with that request. Please try again.