[Modify] Add it

This commit is contained in:
sta 2021-01-16 22:45:53 +09:00
parent c6e1c936b2
commit 5605fb8825

View File

@ -1067,6 +1067,14 @@ namespace WebSocketSharp
yield return elm.Trim ();
}
internal static IEnumerable<string> TrimEach (
this IEnumerable<string> source
)
{
foreach (var elm in source)
yield return elm.Trim ();
}
internal static string TrimSlashFromEnd (this string value)
{
var ret = value.TrimEnd ('/');