From: sawadatsuyoshi@... Date: 2016-02-24T16:21:51+00:00 Subject: [ruby-core:73964] [Ruby trunk Bug#12108] Splitting an empty string returns an empty array 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: