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 Jun 6, 2023
1 parent 7f43470 commit cdf2a4e
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 @@ -348,7 +348,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 cdf2a4e

Please sign in to comment.