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 631269d commit 8cdbe8fCopy full SHA for 8cdbe8f
src/QRegex/NFA.nqp
@@ -254,7 +254,8 @@ class QRegex::NFA {
254
my @substates;
255
if nqp::can($cursor, $name) {
256
if !%seen{$name} {
257
- @substates := $cursor.HOW.find_method($cursor, $name, :no_trace(1)).nqpattr('nfa');
+ my $meth := $cursor.HOW.find_method($cursor, $name, :no_trace(1));
258
+ @substates := $meth.nqpattr('nfa') if nqp::can($meth, 'nqpattr');
259
}
260
if !@substates && !%seen{$name} {
261
# Maybe it's a protoregex, in which case states are an alternation
0 commit comments