Skip to content

Commit

Permalink
Allow https in URL scrape.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkie committed Mar 24, 2011
1 parent de40178 commit 863b1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def to_html
match
end
end
out.gsub!(/(http:\/\/\S+[a-zA-Z0-9\/])/, "<a href='\\1'>\\1</a>")
out.gsub!(/(http[s]?:\/\/\S+[a-zA-Z0-9\/])/, "<a href='\\1'>\\1</a>")
out.gsub!(/#(\w+)/, "<a href='/hashtags/\\1'>#\\1</a>")
out
end
Expand Down

0 comments on commit 863b1ec

Please sign in to comment.