lib/protonbot/titler/plugin.rb in protonbot-titler-0.1.5 vs lib/protonbot/titler/plugin.rb in protonbot-titler-0.1.6
- 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/, ' ') + '%N'))
+ .gsub(':OUT', "%C%GREEN\u200B" + html.title.strip.gsub(/\n\r/, ' ') + '%N'))
else
contenttype =
if res["Content-Type"]
' %C%GREEN' + res["Content-Type"] + '%N'
else
\ No newline at end of file