Use `allowEmpty` parameter in Split
(cherry picked from commit b7a66a820b
)
This commit is contained in:
parent
c717c97819
commit
6a0155393a
|
@ -1109,7 +1109,7 @@ namespace Godot
|
|||
// </summary>
|
||||
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);
|
||||
}
|
||||
|
||||
// <summary>
|
||||
|
|
Loading…
Reference in New Issue