We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81209ea commit cd82f50Copy full SHA for cd82f50
lib/truffle/strscan.rb
@@ -325,16 +325,16 @@ def peep(len)
325
if md
326
Primitive.matchdata_fixup_positions(md, pos)
327
@match = md
328
- scan_internal_set_pos_and_str(advance_pos, getstr)
+ scan_internal_set_pos_and_str(advance_pos, getstr, md)
329
else
330
@match = nil
331
end
332
333
334
- private def scan_internal_set_pos_and_str(advance_pos, getstr)
335
- return nil unless @match
+ private def scan_internal_set_pos_and_str(advance_pos, getstr, md)
+ return nil unless md
336
337
- fin = Primitive.match_data_byte_end(@match, 0)
+ fin = Primitive.match_data_byte_end(md, 0)
338
339
@prev_pos = @pos
340
@pos = fin if advance_pos
0 commit comments