Permalink
Browse files

Merge pull request #86 from ab9/remove-redundant-regex

Remove redundant regex
  • Loading branch information...
2 parents 01072f9 + c1e8303 commit 9fefd4ab8ab53877cdc5d3310a790a20707491dc @atmos atmos committed Nov 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/meme_generator.coffee
@@ -18,7 +18,7 @@ module.exports = (robot) ->
memeGenerator msg, 2, 166088, "Y U NO", caption, (url) ->
msg.send url
- robot.respond /(I DON'?T ALWAYS .*),? (BUT WHEN I DO,? .*)/i, (msg) ->
+ robot.respond /(I DON'?T ALWAYS .*) (BUT WHEN I DO,? .*)/i, (msg) ->
memeGenerator msg, 74, 2485, msg.match[1], msg.match[2], (url) ->
msg.send url

0 comments on commit 9fefd4a

Please sign in to comment.