Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Further portability tweak.
  • Loading branch information
jnthn committed Feb 17, 2013
1 parent 3c896f1 commit d47185c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Regex.pm
Expand Up @@ -42,7 +42,7 @@ sub subst ($text, $regex, $repl, :$global?) {
if $match {
nqp::push(@result, nqp::substr($text, $offset, $match.from - $offset))
if $match.from > $offset;
nqp::push(@result, $is_code ?? $repl($match) !! $repl);
nqp::push(@result, $is_code ?? ~$repl($match) !! ~$repl);
$offset := $match.to;
}
}
Expand Down

0 comments on commit d47185c

Please sign in to comment.