[ruby-cvs:49962] nobu:r42820 (trunk): string.c: fix for \K

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Sep 4 11:13:43 JST 2013


nobu	2013-09-04 11:13:42 +0900 (Wed, 04 Sep 2013)

  New Revision: 42820

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42820

  Log:
    string.c: fix for \K
    
    * string.c (str_gsub): use BEG(0) for whole matched position not
      return value from rb_reg_search(), for \K matching.
      [ruby-dev:47694] [Bug #8856]

  Modified files:
    trunk/ChangeLog
    trunk/string.c
    trunk/test/ruby/test_regexp.rb


More information about the ruby-cvs mailing list