Skip to content

Commit ca0e60a

Browse files
committed
Issue #34: replace regexp by equal comparison
1 parent d387f4c commit ca0e60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ export function enhanceDataFrameWithDataLinks(dataFrame: DataFrame, dataLinks: D
827827
}
828828

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

832832
if (linksToApply.length === 0) {
833833
continue;

0 commit comments

Comments
 (0)