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

Commit 46fbd62

Browse files
committed
Add missing StringComparison in IndexOf
1 parent 13233ac commit 46fbd62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public static int IndexOfAny(this string text, int startIndex, params string[] n
621621
{
622622
foreach (var needle in needles)
623623
{
624-
var pos = text.IndexOf(needle, startIndex);
624+
var pos = text.IndexOf(needle, startIndex, StringComparison.Ordinal);
625625
if ((pos >= 0) && (firstPos == -1 || pos < firstPos))
626626
firstPos = pos;
627627
}

0 commit comments

Comments
 (0)