From ecb973ab0266b3a4e1c902f30b011d9d6380edd7 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Tue, 27 Jul 2021 23:16:10 +0200 Subject: [PATCH] Use `allowEmpty` parameter in Split (cherry picked from commit b7a66a820b88002e734a8e7e7c31992cb7d37fdd) --- .../mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs index bb4cc1a4ef9..34da29bdf50 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs @@ -1132,7 +1132,7 @@ namespace Godot /// public static string[] Split(this string instance, string divisor, bool allowEmpty = true) { - return instance.Split(new[] { divisor }, StringSplitOptions.RemoveEmptyEntries); + return instance.Split(new[] { divisor }, allowEmpty ? StringSplitOptions.None : StringSplitOptions.RemoveEmptyEntries); } ///