Browse Source

* use StartsStr() instead of a manual copy to check whether the line starts with the message id

Sven/Sarah Barth 7 months ago
parent
commit
cffb0a0845
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/utils/dotest.pp

+ 1 - 1
tests/utils/dotest.pp

@@ -764,7 +764,7 @@ begin
         begin
           str(Msgs[i],id);
           id:='('+id+')';
-          if (copy(s,1,length(id))=id) or (pos(': '+id,s)>0) then
+          if startsstr(id,s) or (pos(': '+id,s)>0) then
             begin
               if not Found[i] then
                 inc(fnd);