Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f7ca7bfd25ec1c2917c69fe360c51a57e0860d19 1 parent 2554e1e
@joshfrench joshfrench authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.