# File lib/hawlerhelper.rb, line 152 def self.valid_uri(uri) begin link = URI.parse("#{uri}") unless (link.scheme =~ /https?/ || link.scheme.nil?) return false end link.path = "/" if link.path.empty? link.fragment = nil rescue URI::Error => e return false end link end