Skip to content

Commit

Permalink
Fixes link embed regex
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 12, 2012
1 parent 8c3b7d4 commit c185893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/backbone/plugins/link_embed.js.coffee
@@ -1,8 +1,7 @@
class Kandan.Plugins.LinkEmbed

@options:
regex: /(http?:\S*)/g

regex: /(http?\S*)/g

@init: ()->
Kandan.Modifiers.register @options.regex, (message, state)=>
Expand Down
2 changes: 0 additions & 2 deletions app/assets/javascripts/backbone/plugins/pastie.js.coffee
Expand Up @@ -25,5 +25,3 @@ class Kandan.Plugins.Pastie
url = "/channels/#{message.channel_id}/activities/#{message.id}"
message.content = @options.template({preview: @truncate(message.content), messageLink: url})
return Kandan.Helpers.Activities.buildFromMessageTemplate(message)

# Kandan.Plugins.register "Kandan.Plugins.Pastie"

0 comments on commit c185893

Please sign in to comment.