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/