C#: Match Core implementation of BinToInt & HexToInt

(cherry picked from commit 48428bd087)
This commit is contained in:
Thaddeus Crews 2024-02-17 11:59:14 -06:00 committed by Rémi Verschelde
parent f546d40367
commit d0a36f8111
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

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