General

Profile

davidkellis (David Ellis)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/24/2009

03:19 PM Ruby Bug #1312 (Rejected): String#rindex(Regexp, offset) doesn't seem to match greedily
=begin
I may be wrong but I was expecting:
"abcdefg ".rindex(/\w+/,10)
to return 0.

This is what actually happens:
irb(main):003:0> "abcdefg ".rindex(/\w+/,10)
=> 6
irb(main):004:0> $~
=> #<MatchData "g">
irb(ma...
davidkellis (David Ellis)

Also available in: Atom