From 85096197c1618cea45d7a1a8d5e4810ce1166083 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 10 Feb 2011 15:55:30 +0100 Subject: render https as link --- lib/to-html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/to-html.rb') diff --git a/lib/to-html.rb b/lib/to-html.rb index e9764ef..4de5ee6 100755 --- a/lib/to-html.rb +++ b/lib/to-html.rb @@ -7,7 +7,7 @@ class String # encloses URI in text with with link tag # @return [String] new text with marked links def link_urls - self.gsub(/(?i)http:\/\/[^\r\n\s']*/, '\0') + self.gsub(/(?i)http(s?):\/\/[^\r\n\s']*/, '\0') end end -- cgit v1.2.3