From bc75297dfd293e84268091a97c0340962dd06051 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 8 Mar 2022 18:12:36 +0000 Subject: [PATCH] Fix reporting uuid parsing Signed-off-by: Joshua Li --- .../public/components/context_menu/context_menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards-reports/public/components/context_menu/context_menu.js b/dashboards-reports/public/components/context_menu/context_menu.js index e530472f..f30e336d 100644 --- a/dashboards-reports/public/components/context_menu/context_menu.js +++ b/dashboards-reports/public/components/context_menu/context_menu.js @@ -124,7 +124,7 @@ const generateInContextReport = async ( // try to match uuid and user entered custom-id followed by '?' in URL, which would be the saved search id for discover URL // custom id example: v1s-f00-b4r1-01, Filebeat-Apache-Dashboard-ecs, -const getUuidFromUrl = () => window.location.href.match(/[0-9a-zA-Z-]+\?/); +const getUuidFromUrl = () => window.location.href.match(/([0-9a-zA-Z-]+)\?/); const isDiscover = () => window.location.href.includes('discover'); // open Download drop-down