From ffa7e5eddefb018b6e3fd301d968805723e75b4a Mon Sep 17 00:00:00 2001 From: Kevin Lynch Date: Wed, 11 Nov 2015 13:21:08 -0500 Subject: [PATCH] fix search regex matching --- src/grafana.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grafana.coffee b/src/grafana.coffee index a47ff96..4d374b5 100644 --- a/src/grafana.coffee +++ b/src/grafana.coffee @@ -158,7 +158,7 @@ module.exports = (robot) -> # Search dashboards robot.respond /(?:grafana|graph|graf) search (.+)/i, (msg) -> - query = msg.match[2].trim() + query = msg.match[1].trim() robot.logger.debug query callGrafana "search?query=#{query}", (dashboards) -> robot.logger.debug dashboards