Project

General

Profile

Actions

Bug #12108

closed

Splitting an empty string returns an empty array

Added by sawa (Tsuyoshi Sawada) about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:73962]

Description

Splitting an empty string returns an empty array.

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

Also available in: Atom PDF

Like0
Like0Like0