We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041e1e2 commit 73de526Copy full SHA for 73de526
src/QRegex/Cursor.nqp
@@ -851,7 +851,7 @@ class NQPCursor does NQPCursorRole {
851
# For captures with lists, initialize the lists.
852
my %caplist := $NO_CAPS;
853
my $rxsub := nqp::getattr(self, NQPCursor, '$!regexsub');
854
- my int $sawcaps := 0;
+ my int $sawcaps := 1;
855
if !nqp::isnull($rxsub) && nqp::defined($rxsub) {
856
%caplist := nqp::can($rxsub, 'CAPS') ?? $rxsub.CAPS() !! nqp::null();
857
if !nqp::isnull(%caplist) && nqp::istrue(%caplist) {
0 commit comments