We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13961d4 commit 59e137cCopy full SHA for 59e137c
1 file changed
lib/strscan/truffleruby.rb
@@ -59,7 +59,7 @@ def pos=(new_pos)
59
60
def charpos = Primitive.string_byte_index_to_character_index(@string, @pos)
61
62
- def rest = @string.byteslice(@pos..)
+ def rest = @string.byteslice(@pos, @string.bytesize)
63
64
def rest_size = @string.bytesize - @pos
65
0 commit comments