From e831a7cfa54d4737f24aed08f745d0b7acccb83e Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 4 Feb 2015 18:52:35 +0000 Subject: [PATCH] /i --- modules/link/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/link/link.js b/modules/link/link.js index 84fea1a..b400680 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -26,7 +26,7 @@ var link = function(dbot) { size = 0, page = request(link.replace('https', 'http'), function(error, response, body) { if(!error && response.statusCode == 200) { - body = body.replace(/(\r\n|\n\r|\n)/gm, " "); + body = body.replace(/(\r\n|\n\r|\n)/gim, " "); var title = body.valMatch(/(.*?)<\/title>/, 2); if(title && title.length < 140) { callback(ent.decode(title[1]).trim());