Moderate Activity

Commits : Individual Commit

  Analyzed 2 days ago based on code collected 2 days ago.

Commit ID b43448aeb6b0f045879592c0fb5d1e60581483c3

Anon80 Contributor: Watson Files Modified: 1
Date: 05-September-2012 at 21:25 Lines Added: 1
Repository: git://github.com/MacRuby/MacRuby.git master Lines Removed: 1
Commit Comment: 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.
 

Changes by Language

Language Code Added Code Removed Comments Added Comment Removed Blanks Added Blanks Removed
  C 1 1 0 0 0 0

Changes by File

Showing page 1 of 1
File Language Code Added Code Removed Comments Added Comment Removed Blanks Added Blanks Removed
re.c C 1 1 0 0 0 0
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.