Private
Public Access
fixed bug in Strip where input was only spaces
This commit is contained in:
1 parent
90dc05f9f9
commit
353558420e
1 file changed
+2
+2
@@ -61,6 +61,8 @@ namespace Advanced_Software_Engineering {
|
|||||||
if (character != " "[0]) break;
|
if (character != " "[0]) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (end == -1) return "";
|
||||||
|
|
||||||
string result = text.Substring(start, end - start + 1);
|
string result = text.Substring(start, end - start + 1);
|
||||||
|
|
||||||
//Console.WriteLine("Started at: " + start);
|
//Console.WriteLine("Started at: " + start);
|
||||||
|
|||||||
Reference in new issue
Block a user