Skip to content

Commit

Permalink
Merge pull request #24 from Squarespace/fix-search
Browse files Browse the repository at this point in the history
fix search regex matching
  • Loading branch information
stephenyeargin committed Nov 11, 2015
2 parents 5c2a0e9 + ffa7e5e commit 5e4a087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grafana.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e4a087

Please sign in to comment.