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

Commit 9e4c432

Browse files
committed
Fix PCL build
1 parent d323ef5 commit 9e4c432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public static string[] SplitOnFirst(this string strVal, char needle)
347347
public static string[] SplitOnFirst(this string strVal, string needle)
348348
{
349349
if (strVal == null) return TypeConstants.EmptyStringArray;
350-
var pos = strVal.IndexOf(needle, StringComparison.InvariantCultureIgnoreCase);
350+
var pos = strVal.IndexOf(needle, StringComparison.OrdinalIgnoreCase);
351351
return pos == -1
352352
? new[] { strVal }
353353
: new[] { strVal.Substring(0, pos), strVal.Substring(pos + needle.Length) };
@@ -365,7 +365,7 @@ public static string[] SplitOnLast(this string strVal, char needle)
365365
public static string[] SplitOnLast(this string strVal, string needle)
366366
{
367367
if (strVal == null) return TypeConstants.EmptyStringArray;
368-
var pos = strVal.LastIndexOf(needle, StringComparison.InvariantCultureIgnoreCase);
368+
var pos = strVal.LastIndexOf(needle, StringComparison.OrdinalIgnoreCase);
369369
return pos == -1
370370
? new[] { strVal }
371371
: new[] { strVal.Substring(0, pos), strVal.Substring(pos + needle.Length) };

0 commit comments

Comments
 (0)