diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-17 19:57:46 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-17 19:57:46 +0100 |
commit | 59f966646c93f259088310ee4cb624c852e3a67f (patch) | |
tree | 00439119b775a73789141656cddd4046b8e2a729 | |
parent | 9ae8a0e9cd1c3631a82d3966f688edc671e6b83b (diff) | |
parent | 48428bd087cfc084df0e9ada32a4e89d85083ef6 (diff) | |
download | redot-engine-59f966646c93f259088310ee4cb624c852e3a67f.tar.gz |
Merge pull request #88453 from Repiteo/dotnet/stringextensions-match-core
C#: Match Core implementation of `BinToInt` & `HexToInt`
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs | 4 |
1 files 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 e89bbbd370..9de6aafc8a 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs @@ -106,7 +106,7 @@ namespace Godot instance = instance.Substring(1); } - if (instance.StartsWith("0b")) + if (instance.StartsWith("0b", StringComparison.OrdinalIgnoreCase)) { instance = instance.Substring(2); } @@ -816,7 +816,7 @@ namespace Godot instance = instance.Substring(1); } - if (instance.StartsWith("0x")) + if (instance.StartsWith("0x", StringComparison.OrdinalIgnoreCase)) { instance = instance.Substring(2); } |