Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
update cloudapp script for new url format
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardochimal committed Sep 20, 2012
1 parent 6db3b50 commit 41dbc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/cloudapp.coffee
Expand Up @@ -14,7 +14,7 @@
# lmarburger

module.exports = (robot) ->
robot.hear /(https?:\/\/cl.ly\/[A-Za-z0-9]+)(\/[^\/]+)?/i, (msg) ->
robot.hear /(https?:\/\/cl.ly\/image\/[A-Za-z0-9]+)(\/[^\/]+)?/i, (msg) ->
return if msg.match[2] # Ignore already embedded images.

link = msg.match[1]
Expand Down

0 comments on commit 41dbc45

Please sign in to comment.