Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle charrange.
  • Loading branch information
pmurias committed Jul 25, 2014
1 parent b486a9e commit 78be7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/QAST/Compiler.nqp
Expand Up @@ -1000,7 +1000,7 @@ class QAST::CompilerJS does SerializeOnce {
~ self.regex_case($scan)
~ self.regex_mark($loop,'pos',0)
~ self.regex_case($done);
} elsif $node.rxtype eq 'enumcharlist' {
} elsif $node.rxtype eq 'enumcharlist' || $node.rxtype eq 'charrange' {
my $charlist := self.quote_string($node[0]);
my $testop := $node.negate ?? '>=' !! '<';

Expand Down

0 comments on commit 78be7f1

Please sign in to comment.