Skip to content

Commit c9fd128

Browse files
committed
Oops, I meant this...
1 parent a2b60b7 commit c9fd128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRegex/Cursor.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ role NQPCursorRole {
2424
for $!cstack -> $subcur {
2525
my $submatch := $subcur.MATCH;
2626
my $name := nqp::getattr($subcur, $?CLASS, '$!name');
27-
if $name {
27+
if pir::defined($name) {
2828
for nqp::split('=', $name) -> $name {
2929
%caplist{$name} >= 2
3030
?? nqp::push($caps{$name}, $submatch)

0 commit comments

Comments
 (0)