diff --git a/modules/link/link.js b/modules/link/link.js index cbd9c2a..0efbd02 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -10,7 +10,7 @@ var link = function(dbot) { this.urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; this.links = {}; this.fetchTitle = function(event, link) { - request(link, function (error, response, body) { + request(link, function(error, response, body) { if(!error && response.statusCode == 200) { body = body.replace(/(\r\n|\n\r|\n)/gm, " "); var title = body.valMatch(/