Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit ea0a10c

Browse files
author
Tom Bell
committed
Merge pull request #938 from benjie/patch-1
Make `ambush` username matching non-greedy
2 parents d8ce142 + 1ccf580 commit ea0a10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/ambush.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = (robot) ->
2222
robot.brain.on 'loaded', =>
2323
robot.brain.data.ambushes ||= {}
2424

25-
robot.respond /ambush (.*): (.*)/i, (msg) ->
25+
robot.respond /ambush (.*?): (.*)/i, (msg) ->
2626
users = robot.brain.usersForFuzzyName(msg.match[1].trim())
2727
if users.length is 1
2828
user = users[0]

0 commit comments

Comments
 (0)