mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 19:59:18 +02:00
* Fix bug #36806, do not add empty last sep, patch from Delfion
git-svn-id: trunk@44312 -
This commit is contained in:
parent
5cd59fd353
commit
123fe94206
@ -1225,9 +1225,12 @@ begin
|
|||||||
begin
|
begin
|
||||||
T:=SubString(LastSep);
|
T:=SubString(LastSep);
|
||||||
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);
|
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);
|
||||||
MaybeGrow(Len);
|
If (T<>'') or (not (TStringSplitOptions.ExcludeEmpty=Options)) then
|
||||||
Result[Len]:=T;
|
begin
|
||||||
Inc(Len);
|
MaybeGrow(Len);
|
||||||
|
Result[Len]:=T;
|
||||||
|
Inc(Len);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
SetLength(Result,Len);
|
SetLength(Result,Len);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user