Skip to content
Browse files

fix QRegex/Cursor.nqp

  • Loading branch information...
1 parent ca1ba8c commit 07459749e0c6edec4c98b74b36ec70a9e5194701 @gerdr gerdr committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/QRegex/Cursor.nqp
View
3 src/QRegex/Cursor.nqp
@@ -727,7 +727,8 @@ class NQPCursor does NQPCursorRole {
my $res := [];
for $var {
my $elem := $_;
- $elem := $rxcompiler.compile($elem) unless nqp::isinvokable($elem);
+ $elem := $rxcompiler.compile($elem).main_sub()
+ unless nqp::isinvokable($elem);
nqp::push($res, $elem);
}
$var := $res;

0 comments on commit 0745974

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