Joel Dice 250a77dc13 handle empty strings properly in Pattern.split
We were incorrectly returning an empty array when the input was empty,
whereas we ought to return an array containing a single empty string.
When the pattern to match was empty, we went into a loop to create an
infinite list of empty strings, only to crash once we've run out of
memory.  This commit addresses both problems.
2010-09-06 11:16:27 -06:00
..
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-03-15 12:02:36 -06:00
2009-03-15 12:02:36 -06:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00
2008-10-09 18:30:24 -06:00
2009-12-02 19:08:29 -07:00
2008-09-26 08:10:16 -06:00
2009-07-25 18:38:57 -06:00
2009-12-02 19:08:29 -07:00
2009-12-02 19:08:29 -07:00