StrStarts should be StrEnds
Original Reporter info from Mantis: KevinOfOz @kevinofoz
-
Reporter name: Kevin Jesshope
Original Reporter info from Mantis: KevinOfOz @kevinofoz
- Reporter name: Kevin Jesshope
Description:
Latest update to ToDoListCore.pas R64527 line 372 has
// Remove the ending comment chars from input string
if (aEndComment <> '') and StartsStr(aEndComment, lParsingString) then
SetLength(lParsingString, Length(lParsingString)-Length(aEndComment));
The StartsStr should be EndsStr. StartsStr results in the aEndComment not being found and hence not removed so the todolist dialog includes the EndComment '}'
Steps to reproduce:
Running lazarus\components\todolist\test\TestToDoList.lpi fails when StartsStr is used. All tests are passed if EndsStr is used.
Mantis conversion info:
- Mantis ID: 38528
- OS: Win64
- OS Build: Win 10 20H2
- Build: Trunk R64527
- Platform: Lazarus IDE v2.1.0
- Version: 2.1 (SVN)
- Fixed in revision: r64648 (#efa1689f)