Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix thinko in NFA building, which unbusts 2 out of the 3 failing S05 …

…tests with PIRT.
  • Loading branch information...
commit 570712c71b4121e29ddf60c68e7a9882731aa21b 1 parent 302b444
@jnthn jnthn authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/QRegex/NFA.nqp
View
3  src/QRegex/NFA.nqp
@@ -126,7 +126,8 @@ class QRegex::NFA {
}
elsif $subtype ne 'zerowidth' &&
($node.name eq 'alpha' ||
- $subtype eq 'method' && (try $node[0][0] eq 'alpha')) {
+ $subtype eq 'method' &&
+ ($node[0][0] ~~ QAST::SVal ?? $node[0][0].value !! $node[0][0]) eq 'alpha') {
$to := self.addedge($from, $to, $EDGE_CHARCLASS + $node.negate,
pir::const::CCLASS_ALPHABETIC);
self.addedge($from, $to, $EDGE_CODEPOINT + $node.negate, 95);
Please sign in to comment.
Something went wrong with that request. Please try again.