Skip to content
Browse files

Case-insensitive URL matching

Not sure why this doesn't match lower-case strings, but doesn't seem to work without the flag.
  • Loading branch information...
1 parent 2554e1e commit f7ca7bfd25ec1c2917c69fe360c51a57e0860d19 @joshfrench joshfrench committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/shorten.coffee
View
2 src/scripts/shorten.coffee
@@ -15,7 +15,7 @@
# sleekslush
module.exports = (robot) ->
- robot.respond /(bitly|shorten)\s?(me)?\s?(.+)$/, (msg) ->
+ robot.respond /(bitly|shorten)\s?(me)?\s?(.+)$/i, (msg) ->
msg
.http("http://api.bitly.com/v3/shorten")
.query

0 comments on commit f7ca7bf

Please sign in to comment.
Something went wrong with that request. Please try again.