mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:19:27 +02:00
* Fix split, last term of length 1 is sometimes missed
git-svn-id: trunk@39843 -
This commit is contained in:
parent
01790c4e46
commit
a7278c1806
@ -1304,7 +1304,7 @@ begin
|
||||
LastSep:=Sep+System.Length(Separators[Match]);
|
||||
Sep:=NextSep(LastSep,Match);
|
||||
end;
|
||||
if (LastSep<Length-1) and ((ACount=0) or (Len<ACount)) then
|
||||
if (LastSep<Length) and ((ACount=0) or (Len<ACount)) then
|
||||
begin
|
||||
T:=SubString(LastSep);
|
||||
// Writeln('Examining >',T,'< at pos,',LastSep,' till pos ',Sep);
|
||||
|
Loading…
Reference in New Issue
Block a user