From 3fbd9d3b98277f971079a197fa88c1459d6da77f Mon Sep 17 00:00:00 2001 From: Daniel Green Date: Tue, 6 Jun 2023 09:33:18 -0400 Subject: [PATCH] Don't collapse a string's strands when matching against it This used to be an optimization, but isn't needed anymore. --- src/QRegex/Cursor.nqp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QRegex/Cursor.nqp b/src/QRegex/Cursor.nqp index b175285ad..e7079c568 100644 --- a/src/QRegex/Cursor.nqp +++ b/src/QRegex/Cursor.nqp @@ -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);