Cleanup PiscalSshClient ending newlines

This commit is contained in:
2016-05-11 10:30:18 -04:00
parent aca7157663
commit b0c586fab4
4 changed files with 12 additions and 6 deletions
+5
View File
@@ -62,6 +62,11 @@ namespace LeafWeb.Core.Utility
return Regex.Replace(path, @".*/([^/]*$)", "$1");
}
public static string TrimEndNewLine(this string input)
{
return input.TrimEnd('\r', '\n');
}
public static string Join<T>(this IEnumerable<T> enumerable, string separator)
{
return string.Join(separator, enumerable);