DateTimeParse: accept all white space chars in the format string for DateTimeStyles Allow White#85102
Conversation
…DateTimeStyles Allow White When the string is parsed using DateTimeStyles Allow White, the parser will skip any type of white space in the parsed string. Then when the parser tries to match with a non-regular space from the format string, it fails because it only accepts regular spaces in the format string. This changes the accepted white space characters for Allow White in the format string to match with the skipped white space characters in the parsed string.
|
Tagging subscribers to this area: @dotnet/area-system-globalization Issue DetailsFixes #84763. When the string is parsed using DateTimeStyles Allow White, the parser will skip any type of white space in the parsed string. Then when the parser tries to match with a non-regular space from the format string, it fails because it only accepts regular spaces in the format string. This changes the accepted white space characters for Allow White in the format string to match with the skipped white space characters in the parsed string. @tarekgh ptal.
|
|
Thanks @tmds for helping with this one too. |
|
@tmds is there any requested signing you need to do? Looks the CI leg |
Thanks for your help. It's been interesting contributing to these less familiar parts.
It's just on this PR. I'm going to close and re-open to trigger CI. |
Fixes #84763.
When the string is parsed using DateTimeStyles Allow White, the parser will skip any type of white space in the parsed string. Then when the parser tries to match with a non-regular space from the format string, it fails because it only accepts regular spaces in the format string.
This changes the accepted white space characters for Allow White in the format string to match with the skipped white space characters in the parsed string.
@tarekgh ptal.