Merge pull request #51009 from raulsntos/fix-csharp-split
Use `allowEmpty` parameter in Split
This commit is contained in:
commit
bdcc8741e4
@ -1108,7 +1108,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
Block a user