lib/postrank-uri.rb in postrank-uri-1.0.14 vs lib/postrank-uri.rb in postrank-uri-1.0.15

- old
+ new

@@ -198,10 +198,10 @@ def parse(uri, opts = {}) return uri if uri.is_a? Addressable::URI uri = Addressable::URI.parse(uri) - unless uri.host + if !uri.host && uri.scheme !~ /^javascript|mailto|xmpp$/ if uri.scheme # With no host and scheme yes, the parser exploded return parse("http://#{uri}", opts) end