Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 6922c3ad20b15aebfc185019bbfd385fdc3d1eb6 1 parent de4993b
@Iristyle Iristyle authored
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.
Something went wrong with that request. Please try again.