From b0d82acf77c5071a8154fe716dbe95f85ef62e69 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 17 Nov 2011 22:06:56 +0000 Subject: [PATCH] ignore spelling if *word* --- modules/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling.js b/modules/spelling.js index b376893..0fe44be 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -4,7 +4,7 @@ var spelling = function(dbot) { return { 'listener': function(data, params) { - var q = data.message.valMatch(/^\*\*?([\d\w\s]*)/, 2); + var q = data.message.valMatch(/^\*\*?([\d\w\s]*)[^*]/, 2); var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)/, 3); if(q) { var correction = q[1];