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 c037165 commit 20308c0
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);

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

0 comments on commit 20308c0

Please sign in to comment.