diff --git a/src/core/Cool-str.pm b/src/core/Cool-str.pm index 4aa10cf6c01..3462c45efd0 100644 --- a/src/core/Cool-str.pm +++ b/src/core/Cool-str.pm @@ -177,7 +177,12 @@ augment class Cool { self gt '' ?? self.substr(0,1).lc ~ self.substr(1) !! "" } - our multi method match(Regex $pat, :c(:$continue), :g(:$global), :pos(:$p), Mu :$nth) { + our multi method match(Regex $pat, + :c(:$continue), + :g(:$global), + :pos(:$p), + Mu :$nth, + :ov(:$overlap)) { if $continue ~~ Bool { note ":c / :continue requires a position in the string"; fail ":c / :continue requires a position in the string"; @@ -186,7 +191,7 @@ augment class Cool { %opts
= $p if defined $p;
%opts