From d0a36f8111fa8b0287491270a143431ebc83a30d Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Sat, 17 Feb 2024 11:59:14 -0600 Subject: [PATCH] C#: Match Core implementation of `BinToInt` & `HexToInt` (cherry picked from commit 48428bd087cfc084df0e9ada32a4e89d85083ef6) --- .../mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs index d53bb9f5360..f10d595fff3 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs @@ -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); }