Permalink
Browse files

Fixes link embed regex

Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information...
1 parent 8c3b7d4 commit c18589392ce0e37c7940df956473489c2127a64e @HashNuke HashNuke committed Apr 12, 2012
@@ -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)=>
@@ -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.