an empty string must be added to the array of results.
svn path=/trunk/mcs/; revision=21825
+2004-01-07 Lluis Sanchez Gual <lluis@ximian.com>
+
+ * regex.cs: In Split(), if the last match is at the end of the string,
+ an empty string must be added to the array of results.
+
2003-12-15 Sanjay Gupta <gsanjay@novell.com>
* match.cs: Check for null value before Substring method call.
Fixes bug #52034.
ptr = m.Index + m.Length;\r
}\r
\r
- if (ptr < input.Length) {\r
+ if (ptr <= input.Length) {\r
splits.Add (input.Substring (ptr));\r
}\r
\r