C#: Match Core implementation of BinToInt & HexToInt
(cherry picked from commit 48428bd087)
This commit is contained in:
committed by
Rémi Verschelde
parent
c1efc31f2b
commit
00cfd6dcac
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user