From 38aa2fbe8e701f95d4e971b8190d1074bc13cc2d Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 2 Feb 2018 16:39:21 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 6829c347..857ec40a 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -464,10 +464,7 @@ namespace WebSocketSharp /// internal static string GetValue (this string nameAndValue, char separator) { - var idx = nameAndValue.IndexOf (separator); - return idx > -1 && idx < nameAndValue.Length - 1 - ? nameAndValue.Substring (idx + 1).Trim () - : null; + return nameAndValue.GetValue (separator, false); } internal static string GetValue (