Issue #1918: make expression more exact, for cases it matches in the middle of a query as well

This commit is contained in:
Ansgar Becker
2024-03-02 13:39:56 +01:00
parent 648e1356e3
commit b7e7207cb0

View File

@ -7214,7 +7214,7 @@ begin
Tab := QueryTabs[MainForm.QueryTabs.Count-1];
LineText := SynMemoSQLLog.LineText;
if AppSettings.ReadBool(asLogTimestamp) then
LineText := ReplaceRegExpr('\s*\[[^\]]+\]\s', LineText, '');
LineText := ReplaceRegExpr('^\s*\[[^\]]+\]\s', LineText, '');
Tab.Memo.Text := LineText;
end;
end;