lib/regexp_crawler/crawler.rb in flyerhzm-regexp_crawler-0.9.0 vs lib/regexp_crawler/crawler.rb in flyerhzm-regexp_crawler-0.9.1

- old
+ new

@@ -39,10 +39,10 @@ end def continue_uri(uri, page) if page =~ /^#{uri.scheme}/ URI.parse(page) - elsif page.start_with?('/') + elsif page =~ /^\// URI.join(uri.scheme + '://' + uri.host, page) else URI.parse(uri.to_s.split('/')[0..-2].join('/') + '/' + page) end end