Issue #692: support urls in grid cells starting with "www.", which are accepted by web browsers

This commit is contained in:
Ansgar Becker
2020-04-01 09:22:50 +02:00
parent 5c50d9be43
commit c67ba1afd3

View File

@@ -5870,7 +5870,7 @@ begin
actDataSaveBlobToFile.Enabled := HasConnection and inDataOrQueryTabNotEmpty and Assigned(Grid.FocusedNode);
actGridEditFunction.Enabled := HasConnection and inDataOrQueryTabNotEmpty and Assigned(Grid.FocusedNode);
actDataPreview.Enabled := HasConnection and inDataOrQueryTabNotEmpty and Assigned(Grid.FocusedNode);
actDataOpenUrl.Enabled := ExecRegExpr('^https?://[^\s]+$', CellText);
actDataOpenUrl.Enabled := (Length(CellText)<SIZE_MB) and ExecRegExpr('^(https?://[^\s]+|www\.\w\S+)$', CellText);
actUnixTimestampColumn.Enabled := HasConnection and inDataTab and EnableTimestamp;
actUnixTimestampColumn.Checked := inDataTab and HandleUnixTimestampColumn(Grid, Grid.FocusedColumn);
actPreviousResult.Enabled := HasConnection and inDataOrQueryTabNotEmpty;