Utf8Parser.TryParse ignores the provided format for bool #100659
Labels
area-System.Memory
documentation
Documentation bug or enhancement, does not impact product or test code
in-pr
There is an active PR which will close this issue when it is merged
Milestone
Description
The current implementation of
Utf8Parser.TryParse
for bool ignores the format:runtime/src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Utf8Parser/Utf8Parser.Boolean.cs
Lines 29 to 58 in beac274
Reproduction Steps
Expected behavior
result
should befalse
because for the formatG
,True
orFalse
beginning with uppercase are expected.Actual behavior
result
istrue
.Regression?
I don't think so. In dotnet/corefx, the implementation already didn't take the format into account.
Known Workarounds
No response
Configuration
9.0.0-preview.2.24128.5
Other information
No response
The text was updated successfully, but these errors were encountered: