summaryrefslogtreecommitdiff
path: root/lib/to-html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/to-html.rb')
-rwxr-xr-xlib/to-html.rb2
1 files changed, 1 insertions, 1 deletions
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']*/, '<a href=\0>\0</a>')
+ self.gsub(/(?i)http(s?):\/\/[^\r\n\s']*/, '<a href=\0>\0</a>')
end
end