-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix EqualsAny condition check for int and double #9351
Conversation
7dbaf88
to
6b24798
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a foreach and our own Split that works on ReadonlySpan
a1c9fd9
to
06e3543
Compare
06e3543
to
037eeed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change the other ones in this file too, the default NumberStyles
should be fine, no need to support currency symbols or hex etc
Fix EqualsAny condition check for int and double Original-merge: e8b0ae0 Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: crobibero <cody@robibe.ro>
Currently
EqualsAny
is not implemented fordouble
and the implementation forint
does not work as it should (see #9350)Changes
Split the conditional string value, parse the substrings into a int/double and check if one of them is equal to the current value.
Issues
Fixes #9350