Skip to content

Commit

Permalink
Handle the case when a chunk has no matches
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 16, 2020
1 parent a666e73 commit 92d465d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Supply-factories.pm6
Expand Up @@ -646,7 +646,7 @@
$str = nqp::concat($str,$val);
my @matches = $str.comb($matcher, :match);
emit .Str for @matches;
$str = nqp::substr($str,@matches.tail.pos);
$str = nqp::substr($str,@matches.tail.pos) if @matches;
}
}
}
Expand Down

0 comments on commit 92d465d

Please sign in to comment.