5 Sep
2012
5 Sep
'12
9:50 p.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: b43448aeb6b0f045879592c0fb5d1e60581483c3 https://github.com/MacRuby/MacRuby/commit/b43448aeb6b0f045879592c0fb5d1e6058... Author: Watson <watson1978@gmail.com> Date: 2012-09-05 (Wed, 05 Sep 2012) Changed paths: M re.c Log Message: ----------- Regexp.last_match(nth) should return nil if passed index which is out of matched range Here is code which expected that Regexp.last_match returns nil: /(...)/.match("foobarbaz") Regexp.last_match(4) #=> nil Regexp.last_match(-3) #=> nil However, raises an IndexError.