From 928142523dc19e9bafa9a06264170b8e64ed8388 Mon Sep 17 00:00:00 2001 From: mufaddal motiwala Date: Tue, 21 Dec 2021 18:36:01 +0530 Subject: [PATCH] made replace 'pdf' regex case insensitive Signed-off-by: mufaddal motiwala --- .../DashboardSnapshotList/DashboardSnapshot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx index 932bdf2dbf..95de46df2c 100644 --- a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx +++ b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx @@ -55,7 +55,7 @@ export const DashboardSnapshot = ({ } const url = value?.getDashboardSnapshot?.data?.dashboardCreateSnapshotUrl?.replace( - /PDF$/, + /\pdf$/i, 'png', ); return (