From d7144a9c6faae04461e0e44fcaccc5dd078d3f47 Mon Sep 17 00:00:00 2001 From: Panagiotis Nikitopoulos Date: Mon, 3 Oct 2016 22:13:33 +0300 Subject: [PATCH] fixed a bug in RemoveWhiteSpacesCompletly Added support for tab characters. --- MyStringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyStringExtensions.cs b/MyStringExtensions.cs index 34f5327..b05acdc 100644 --- a/MyStringExtensions.cs +++ b/MyStringExtensions.cs @@ -17,7 +17,7 @@ public static string ConvertWhiteSpacesToSingleSpaces(this string stringToConver /// Completly remove whitespaces public static string RemoveWhiteSpacesCompletly(this string stringToConvert) { - return stringToConvert.Replace(" ", ""); + return stringToConvert.Replace(" ", "").Replace("\t", ""); } ///