Skip to content

Commit

Permalink
Fix reporting uuid parsing (opensearch-project#300)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 authored Mar 8, 2022
1 parent f0508da commit 1fb912e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/components/context_menu/context_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fb912e

Please sign in to comment.