# File lib/stella/core_ext.rb, line 153 def linkify! self.gsub!(/\b((https?:\/\/|ftps?:\/\/|mailto:|www\.|status\.)([A-Za-z0-9\-_=%&@\?\.\/]+(\/\s)?))\b/) { match = $1 tail = $3 case match when /^(www|status)/ then "<a href=\"http://#{match.strip}\">#{match}</a>" when /^mailto/ then "<a href=\"#{match.strip}\">#{tail}</a>" else "<a href=\"#{match.strip}\">#{match}</a>" end } self end