Skip to content

Commit 7b97196

Browse files
committed
stringcomparison.ordinal to fix test
1 parent 16b6229 commit 7b97196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSharpMath/Structures/Dictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static int SplitCommand(ReadOnlySpan<char> chars) {
113113
Result<(TValue Result, int SplitIndex)> TryLookupNonCommand(ReadOnlySpan<char> chars) {
114114
string? commandFound = null; // TODO:short-circuit when found
115115
foreach (string command in nonCommands.Keys) {
116-
if (chars.StartsWith(command.AsSpan(), StringComparison.InvariantCulture)) {
116+
if (chars.StartsWith(command.AsSpan(), StringComparison.Ordinal)) {
117117
commandFound = command; }
118118
}
119119
return commandFound == null ? defaultParser(chars) : Result.Ok((nonCommands[commandFound],commandFound.Length));

0 commit comments

Comments
 (0)