[Modify] Polish it
This commit is contained in:
parent
46731fc93b
commit
38aa2fbe8e
@ -464,10 +464,7 @@ namespace WebSocketSharp
|
|||||||
/// </param>
|
/// </param>
|
||||||
internal static string GetValue (this string nameAndValue, char separator)
|
internal static string GetValue (this string nameAndValue, char separator)
|
||||||
{
|
{
|
||||||
var idx = nameAndValue.IndexOf (separator);
|
return nameAndValue.GetValue (separator, false);
|
||||||
return idx > -1 && idx < nameAndValue.Length - 1
|
|
||||||
? nameAndValue.Substring (idx + 1).Trim ()
|
|
||||||
: null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static string GetValue (
|
internal static string GetValue (
|
||||||
|
Loading…
Reference in New Issue
Block a user