lib/postrank-uri.rb in postrank-uri-1.0.10 vs lib/postrank-uri.rb in postrank-uri-1.0.11
- old
+ new
@@ -132,10 +132,10 @@
uri = normalize(c18n(unescape(uri)))
opts[:raw] ? uri : uri.to_s
end
def hash(uri, opts = {})
- Digest::MD5.hexdigest(opts[:clean] == false ? uri : clean(uri))
+ Digest::MD5.hexdigest(opts[:clean] == true ? clean(uri) : uri)
end
def normalize(uri)
u = parse(uri)
u.path = u.path.squeeze('/')
\ No newline at end of file