Fix it one final time.

master
Robert Gerus 2014-03-25 11:24:36 +01:00
parent d5a158b05e
commit 950b70f0f6
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ Client.register_trigger("PRIVMSG") do |msg|
url = Digest::MD5.hexdigest(word)
end
title = Nokogiri::HTML(open(word).read(10240)).title().delete("\n")
title = Nokogiri::HTML(open(word).read(10240)).title().gsub(/[\s]+/, " ").strip
Scrape::Link.create(
:url => url,