Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Fix PCL build
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed May 22, 2016
1 parent d323ef5 commit 9e4c432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceStack.Text/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public static string[] SplitOnFirst(this string strVal, char needle)
public static string[] SplitOnFirst(this string strVal, string needle)
{
if (strVal == null) return TypeConstants.EmptyStringArray;
var pos = strVal.IndexOf(needle, StringComparison.InvariantCultureIgnoreCase);
var pos = strVal.IndexOf(needle, StringComparison.OrdinalIgnoreCase);
return pos == -1
? new[] { strVal }
: new[] { strVal.Substring(0, pos), strVal.Substring(pos + needle.Length) };
Expand All @@ -365,7 +365,7 @@ public static string[] SplitOnLast(this string strVal, char needle)
public static string[] SplitOnLast(this string strVal, string needle)
{
if (strVal == null) return TypeConstants.EmptyStringArray;
var pos = strVal.LastIndexOf(needle, StringComparison.InvariantCultureIgnoreCase);
var pos = strVal.LastIndexOf(needle, StringComparison.OrdinalIgnoreCase);
return pos == -1
? new[] { strVal }
: new[] { strVal.Substring(0, pos), strVal.Substring(pos + needle.Length) };
Expand Down

0 comments on commit 9e4c432

Please sign in to comment.