Use allowEmpty
parameter in Split
This commit is contained in:
parent
4cfa9bc0f1
commit
b7a66a820b
1 changed files with 1 additions and 1 deletions
|
@ -1108,7 +1108,7 @@ namespace Godot
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string[] Split(this string instance, string divisor, bool allowEmpty = true)
|
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>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue