Skip to content

Commit ccb5490

Browse files
committed
Use nqp::fc instead of nqp::lc and add a test
Added test did not pass before this and the previous commit had been made.
1 parent 2189077 commit ccb5490

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/vm/moar/QAST/QASTRegexCompilerMAST.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ class QAST::MASTRegexCompiler {
10001000
}
10011001
elsif $node.list && $node.subtype eq 'ignorecase' {
10021002
my $lit := $!regalloc.fresh_s();
1003-
nqp::push(@ins, op('const_s', $lit, sval(nqp::lc($node[0]))));
1003+
nqp::push(@ins, op('const_s', $lit, sval(nqp::fc($node[0]))));
10041004
unless nqp::existskey(%!reg, 'haystacklc') {
10051005
%!reg<haystacklc> := $!regalloc.fresh_s();
10061006
}

t/qregex/rx_modifiers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## modifiers
2+
:i st st y ignorecase with ligature st (:i)
23
:i bcd abcdef y ignorecase (:i)
34
:i bcd aBcdef y ignorecase (:i)
45
:i bcd abCdef y ignorecase (:i)

0 commit comments

Comments
 (0)