From: "mame (Yusuke Endoh)" <mame@...>
Date: 2012-03-31T11:08:55+09:00
Subject: [ruby-core:43980] [ruby-trunk - Feature #3575][Assigned] String#split is inconsistent with empty string and negative limit


Issue #3575 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned


----------------------------------------
Feature #3575: String#split is inconsistent with empty string and negative limit
https://bugs.ruby-lang.org/issues/3575#change-25501

Author: Conrad.Irwin (Conrad Irwin)
Status: Assigned
Priority: Low
Assignee: drbrain (Eric Hodel)
Category: DOC
Target version: 


=begin
 I expect: "".split(",", -1) == [""]
 Currently: "".split(",", -1) == []
 
 According to the documentation, blank fields should not be stripped when a negative offset is provided.
=end



-- 
http://bugs.ruby-lang.org/