Merge pull request #88453 from Repiteo/dotnet/stringextensions-match-core

C#: Match Core implementation of `BinToInt` & `HexToInt`
This commit is contained in:
Rémi Verschelde 2024-02-17 19:57:46 +01:00
commit 59f966646c
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -106,7 +106,7 @@ namespace Godot
instance = instance.Substring(1);
}
if (instance.StartsWith("0b"))
if (instance.StartsWith("0b", StringComparison.OrdinalIgnoreCase))
{
instance = instance.Substring(2);
}
@ -816,7 +816,7 @@ namespace Godot
instance = instance.Substring(1);
}
if (instance.StartsWith("0x"))
if (instance.StartsWith("0x", StringComparison.OrdinalIgnoreCase))
{
instance = instance.Substring(2);
}