Skip to content
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

C#: Match Core implementation of BinToInt & HexToInt #88453

Merged

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Feb 17, 2024

Changes the functions BinToInt & HexToInt to properly account for different casings by adding StringComparison.OrdinalIgnoreCase to both, matching the Core implementation

Copy link
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This matches the Core behavior:

This should be safe to cherry-pick since the previous behavior was throwing an exception so it doesn't break compat.

@raulsntos raulsntos added cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Feb 17, 2024
@akien-mga akien-mga merged commit 59f9666 into godotengine:master Feb 17, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the dotnet/stringextensions-match-core branch February 17, 2024 20:13
@akien-mga
Copy link
Member

akien-mga commented Mar 11, 2024

Cherry-picked for 4.2.2.
Cherry-picked for 4.1.4.

@akien-mga akien-mga removed cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants