diff options
-rwxr-xr-x | lib/to-html.rb | 2 |
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 |