File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2037,7 +2037,7 @@ def next_token
20372037 return Token . new ( T_SPACE , $+)
20382038 elsif $2
20392039 len = $+. to_i
2040- val = @str [ @pos , len ]
2040+ val = @str . byteslice ( @pos , len )
20412041 @pos += len
20422042 return Token . new ( T_LITERAL8 , val )
20432043 elsif $3 && $7
@@ -2068,7 +2068,7 @@ def next_token
20682068 return Token . new ( T_RBRA , $+)
20692069 elsif $16
20702070 len = $+. to_i
2071- val = @str [ @pos , len ]
2071+ val = @str . byteslice ( @pos , len )
20722072 @pos += len
20732073 return Token . new ( T_LITERAL , val )
20742074 elsif $17
@@ -2097,7 +2097,7 @@ def next_token
20972097 return Token . new ( T_QUOTED , Patterns . unescape_quoted ( $+) )
20982098 elsif $5
20992099 len = $+. to_i
2100- val = @str [ @pos , len ]
2100+ val = @str . byteslice ( @pos , len )
21012101 @pos += len
21022102 return Token . new ( T_LITERAL , val )
21032103 elsif $6
You can’t perform that action at this time.
0 commit comments