Skip to content

Commit

Permalink
Issue #34: replace regexp by equal comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Dec 11, 2023
1 parent 05e8fc6 commit 21e4946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export function enhanceDataFrameWithDataLinks(dataFrame: DataFrame, dataLinks: D
}

for (const field of dataFrame.fields) {
const linksToApply = dataLinks.filter((dataLink) => new RegExp(dataLink.field).test(field.name));
const linksToApply = dataLinks.filter((dataLink) => dataLink.field == field.name);

Check failure on line 830 in src/datasource.ts

View workflow job for this annotation

GitHub Actions / build

Expected '===' and instead saw '=='

if (linksToApply.length === 0) {
continue;
Expand Down

0 comments on commit 21e4946

Please sign in to comment.