From ba2ad2649f21e2bd63b184d759493fc09e5caed2 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Mar 2016 21:36:26 +0000 Subject: [PATCH] working --- modules/wikipedia/wikipedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wikipedia/wikipedia.js b/modules/wikipedia/wikipedia.js index bd1e893..68ab259 100644 --- a/modules/wikipedia/wikipedia.js +++ b/modules/wikipedia/wikipedia.js @@ -36,7 +36,7 @@ var wikipedia = function(dbot) { body = _.filter(body, function(line) { var spaces = line.match(/\s/g); - return line != '' && !line.match(/^\s+$/) && !line.match(/^Category:/) && !line.match(/http:\/\//) && !line.match(/\|/) && spaces && spaces.length > 10 && spaces.length < 60; + return line != '' && !line.match(/^\s+$/) && !line.match(/^Category:/) && !line.match(/http:\/\//) && !line.match(/\|/) && !line.match(/:$/) && spaces && spaces.length > 10 && spaces.length < 60; }); console.log(body);