berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

Indexing MatchData with Range #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
'ab' =~ /(a)(b)/; puts $~[1..-1]

Unhandled Exception: Ruby.Runtime.RubyException: cannot convert Range into
Integer

Similar code is used in URI.split.

Original issue reported on code.google.com by sanxiyn on 12 Sep 2007 at 8:28

GoogleCodeExporter commented 9 years ago
Fix attached.

Original comment by sason...@gmail.com on 12 Sep 2007 at 8:45

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r92.

Original comment by sason...@gmail.com on 15 Sep 2007 at 1:03