JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.3k stars 54 forks source link

Bug: negative string size #117

Closed JoshCheek closed 6 years ago

JoshCheek commented 7 years ago
/(?<p>.(?<c>\g<p>?).)/.match("aabb").inspect  # ~> ArgumentError: negative string size (or size too big)

# ~> ArgumentError
# ~> negative string size (or size too big)
# ~>
# ~> /var/folders/yj/23xw_th91pl6xkdnyc733r01t48gqj/T/seeing_is_believing_temp_dir20170629-23924-ex8o0i/program.rb:1:in `inspect'
# ~> /var/folders/yj/23xw_th91pl6xkdnyc733r01t48gqj/T/seeing_is_believing_temp_dir20170629-23924-ex8o0i/program.rb:1:in `<main>'
JoshCheek commented 6 years ago

This is a bug in Ruby, not SiB, it's fixed in 2.4.1 screen shot 2017-09-11 at 1 57 34 pm