replace all occurences of placeholder in drilldown url template (#41673) (#41770)

This commit is contained in:
Joe Reuter 2019-07-23 17:37:30 +02:00 committed by GitHub
parent 2f31e58ee8
commit 175c278d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -553,7 +553,7 @@ app.controller('graphuiPlugin', function (
//== Drill-down functionality ==
const defaultKibanaQuery = ',query:(query_string:(analyze_wildcard:!t,query:\'*\'))';
const drillDownRegex = /\{\{gquery\}\}/;
const drillDownRegex = /\{\{gquery\}\}/g;
$scope.checkForKibanaUrl = function () {
$scope.suggestTemplateFix = $scope.newUrlTemplate.url === $scope.lastPastedURL &&