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 c1efc31f2b
commit 00cfd6dcac
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

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