Skip to content

Commit

Permalink
Don't collapse a string's strands when matching against it
Browse files Browse the repository at this point in the history
This used to be an optimization, but isn't needed anymore.
  • Loading branch information
MasterDuke17 committed Sep 4, 2024
1 parent c450b5b commit 3fbd9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QRegex/Cursor.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ role NQPMatchRole is export {
$shared := nqp::create(ParseShared);
nqp::bindattr($shared, ParseShared, '$!CUR_CLASS', $?CLASS);
nqp::bindattr($shared, ParseShared, '$!orig', nqp::decont($orig));
nqp::bindattr_s($shared, ParseShared, '$!target', nqp::indexingoptimized($orig));
nqp::bindattr_s($shared, ParseShared, '$!target', $orig);
nqp::bindattr_i($shared, ParseShared, '$!highwater', 0);
nqp::bindattr($shared, ParseShared, '@!highexpect', nqp::list_s);
nqp::bindattr($shared, ParseShared, '%!marks', nqp::hash);
Expand Down

0 comments on commit 3fbd9d3

Please sign in to comment.