mirror of https://github.com/godotengine/godot
C#: Match Core implementation of `BinToInt` & `HexToInt`
(cherry picked from commit 48428bd087)
This commit is contained in:
parent
f546d40367
commit
d0a36f8111
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue