fixed bug in Strip where input was only spaces

This commit is contained in:
Lukasz Baldyga committed 2020-10-21 17:28:10 +01:00
1 parent 90dc05f9f9
commit 353558420e
1 file changed
+2
@@ -61,6 +61,8 @@ namespace Advanced_Software_Engineering {
if (character != " "[0]) break;
}
if (end == -1) return "";
string result = text.Substring(start, end - start + 1);
//Console.WriteLine("Started at: " + start);