Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
moarvm had the \r\n bug, too.
  • Loading branch information
timo committed Nov 11, 2013
1 parent 24b421b commit 5f497cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/moar/QAST/QASTRegexCompilerMAST.nqp
Expand Up @@ -373,7 +373,7 @@ class QAST::MASTRegexCompiler {
nqp::push(@ins, op('iscclass', $i0, $i0, %*REG<tgt>, %*REG<pos>));
nqp::push(@ins, op($testop, $i0, %*REG<fail>));

if $cclass == nqp::const::CCLASS_NEWLINE {
if $cclass == nqp::const::CCLASS_NEWLINE && $node.subtype ne 'zerowidth' {
my $s0 := fresh_s();
nqp::push(@ins, op('const_s', $s0, sval("\r\n")));
nqp::push(@ins, op('eqat_s', $i0, %*REG<tgt>, $s0, %*REG<pos>));
Expand Down

0 comments on commit 5f497cb

Please sign in to comment.