Stringhelper.Split returns array with extra empty string when last char of the string is delimiter.
Original Reporter info from Mantis: delfion
-
Reporter name:
Original Reporter info from Mantis: delfion
- Reporter name:
Description:
writeln(length('a'#10'b'#10.Split(#10,TStringSplitOptions.ExcludeEmpty)));
prints 3 when expected is 2.
Patch attached.