Browse files

Don't match dance / happy inside of other words

Previous regex was too loosey goosey - matched words like abundance,
guidance and unhappy.
  • Loading branch information...
1 parent de4993b commit 6922c3ad20b15aebfc185019bbfd385fdc3d1eb6 @Iristyle Iristyle committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/carlton.coffee
View
2 src/scripts/carlton.coffee
@@ -23,5 +23,5 @@ carltons = [
]
module.exports = (robot) ->
- robot.hear /.*(dance|happy).*/i, (msg) ->
+ robot.hear /\b(dance|happy)\b/i, (msg) ->
msg.send msg.random carltons

0 comments on commit 6922c3a

Please sign in to comment.