Revision: 146
http://svn.sourceforge.net/nmailserver/?rev=146&view=rev
Author: tmyroadctfig
Date: 2007-02-09 20:24:29 -0800 (Fri, 09 Feb 2007)
Log Message:
-----------
Fixed a defect that prevented the last token from being added.
Modified Paths:
--------------
NMail/trunk/NMail/Helper/StringTokenizer.cs
Modified: NMail/trunk/NMail/Helper/StringTokenizer.cs
===================================================================
--- NMail/trunk/NMail/Helper/StringTokenizer.cs 2007-02-10 04:17:12 UTC (rev 145)
+++ NMail/trunk/NMail/Helper/StringTokenizer.cs 2007-02-10 04:24:29 UTC (rev 146)
@@ -42,10 +42,8 @@
tokens.Add(input.Substring(index, (newIndex - index)));
index = newIndex + delimiter.Length;
} else {
- if (newIndex != -1) {
- // No more delimiters found, return the end of the string
- tokens.Add(input.Substring(index, (input.Length - index)));
- }
+ // No more delimiters found, return the end of the string
+ tokens.Add(input.Substring(index, (input.Length - index)));
// Stop searching
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|