Use allowEmpty
parameter in Split
(cherry picked from commit b7a66a820b
)
This commit is contained in:
parent
1da4e9e608
commit
ecb973ab02
1 changed files with 1 additions and 1 deletions
|
@ -1132,7 +1132,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 a new issue