Skip to content

Commit

Permalink
channel post template: render_previews() also matches https://
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Jan 13, 2012
1 parent 99f138a commit f76a5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/channel/post.coffee
Expand Up @@ -59,7 +59,7 @@ module.exports = design (view) ->


render_previews = (view) ->
urls = @text?().match /(http:\/\/[^\s]+)/g
urls = @text?().match /(https?:\/\/[^\s]+)/g
return unless urls?
(urls ? []).forEach (url) =>
div = @div()
Expand Down

0 comments on commit f76a5a6

Please sign in to comment.