Skip to content

Commit

Permalink
Fix externalURL case sensitivity when checking externalURL
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-giulianasilva committed Dec 19, 2023
1 parent 0657ae3 commit 96c210a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Providers/DataGrid/Wijmo/Helper/CellTemplateFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ namespace Providers.DataGrid.Wijmo.Helper.CellTemplateFactory {
let cellTemplate: wijmo.grid.ICellTemplateFunction;

const hasFixedText = binding.startsWith('$');
const hasExternalURL = externalURL?.substring(0, 4) === 'http';
const hasExternalURL = externalURL
?.toLocaleLowerCase()
.startsWith('http');

const url = hasExternalURL
? externalURL
: '${item.' + externalURL + '}';
Expand Down

0 comments on commit 96c210a

Please sign in to comment.