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 302b444 commit 570712cCopy full SHA for 570712c
src/QRegex/NFA.nqp
@@ -126,7 +126,8 @@ class QRegex::NFA {
126
}
127
elsif $subtype ne 'zerowidth' &&
128
($node.name eq 'alpha' ||
129
- $subtype eq 'method' && (try $node[0][0] eq 'alpha')) {
+ $subtype eq 'method' &&
130
+ ($node[0][0] ~~ QAST::SVal ?? $node[0][0].value !! $node[0][0]) eq 'alpha') {
131
$to := self.addedge($from, $to, $EDGE_CHARCLASS + $node.negate,
132
pir::const::CCLASS_ALPHABETIC);
133
self.addedge($from, $to, $EDGE_CODEPOINT + $node.negate, 95);
0 commit comments