lib/protonbot/titler/plugin.rb in protonbot-titler-0.1.7 vs lib/protonbot/titler/plugin.rb in protonbot-titler-0.1.8

- old
+ new

@@ -34,10 +34,10 @@ body = res.body.to_s html = Nokogiri::HTML(body) dat.reply(pattern .gsub(':NICK', dat[:nick]) .gsub(':URLNUM', (k+1).to_s) - .gsub(':OUT', "%C%GREEN\u200B" + html.title.strip.gsub(/\n\r/, ' ')[0,100] + '%N')) + .gsub(':OUT', "%C%GREEN\u200B" + html.title.strip.gsub(/[\n\r]/, ' ')[0,100] + '%N')) else contenttype = if res["Content-Type"] ' %C%GREEN' + res["Content-Type"] + '%N' else \ No newline at end of file