@@ -1,3 +1,8 @@
+2004-01-07 Lluis Sanchez Gual <[email protected]>
+
+ * 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 <[email protected]>
* match.cs: Check for null value before Substring method call.
Fixes bug #52034.
@@ -337,7 +337,7 @@ namespace System.Text.RegularExpressions {
ptr = m.Index + m.Length;
}
- if (ptr < input.Length) {
+ if (ptr <= input.Length) {
splits.Add (input.Substring (ptr));