We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b6229 commit 7b97196Copy full SHA for 7b97196
CSharpMath/Structures/Dictionary.cs
@@ -113,7 +113,7 @@ static int SplitCommand(ReadOnlySpan<char> chars) {
113
Result<(TValue Result, int SplitIndex)> TryLookupNonCommand(ReadOnlySpan<char> chars) {
114
string? commandFound = null; // TODO:short-circuit when found
115
foreach (string command in nonCommands.Keys) {
116
- if (chars.StartsWith(command.AsSpan(), StringComparison.InvariantCulture)) {
+ if (chars.StartsWith(command.AsSpan(), StringComparison.Ordinal)) {
117
commandFound = command; }
118
}
119
return commandFound == null ? defaultParser(chars) : Result.Ok((nonCommands[commandFound],commandFound.Length));
0 commit comments