[Modify] Polish it
This commit is contained in:
parent
4b757bb205
commit
7c907396d5
@ -1082,6 +1082,7 @@ namespace WebSocketSharp
|
||||
internal static string TrimSlashOrBackslashFromEnd (this string value)
|
||||
{
|
||||
var ret = value.TrimEnd ('/', '\\');
|
||||
|
||||
return ret.Length > 0 ? ret : value[0].ToString ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user