Skip to content

Commit 5e4a087

Browse files
Merge pull request #24 from Squarespace/fix-search
fix search regex matching
2 parents 5c2a0e9 + ffa7e5e commit 5e4a087

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/grafana.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = (robot) ->
158158

159159
# Search dashboards
160160
robot.respond /(?:grafana|graph|graf) search (.+)/i, (msg) ->
161-
query = msg.match[2].trim()
161+
query = msg.match[1].trim()
162162
robot.logger.debug query
163163
callGrafana "search?query=#{query}", (dashboards) ->
164164
robot.logger.debug dashboards

0 commit comments

Comments
 (0)