Skip to content

Commit bd4f38a

Browse files
committed
PRECURSOR should not trim $!orig
1 parent 6439b08 commit bd4f38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRegex/Cursor.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ role NQPMatchRole is export {
8484
method pos() { $!pos }
8585
method to() { $!pos }
8686
method CURSOR() { self }
87-
method PRECURSOR() { self."!cursor_init"(nqp::substr(nqp::getattr($!shared, ParseShared, '$!orig'), $!from, $!pos - $!from), :p($!from)) }
87+
method PRECURSOR() { self."!cursor_init"(nqp::getattr($!shared, ParseShared, '$!orig'), :p($!from)) }
8888
method Str() { nqp::substr(nqp::getattr($!shared, ParseShared, '$!orig'), $!from, $!pos - $!from) }
8989
method Int() { +self.Str() }
9090
method Num() { +self.Str() }

0 commit comments

Comments
 (0)