Issue #12108 has been updated by Tsuyoshi Sawada.


Sorry, it turns out that this was a feature (http://ruby-doc.org/core-2.3.0/String.html#method-i-split). I didn't know. I would like to retract this bug.

----------------------------------------
Bug #12108: Splitting an empty string returns an empty array
https://bugs.ruby-lang.org/issues/12108#change-57117

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Splitting an empty string returns an empty array.

~~~RUBY
"".split("") # => []
"".split("a") # => []
"".split(//) # => []
"".split(/a/) # => []
~~~



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>