From 2f9af449ece1ae1cc88ce6e21246aaff68de46b1 Mon Sep 17 00:00:00 2001 From: Psychedelic Squid Date: Fri, 2 Mar 2012 02:50:31 +0000 Subject: [PATCH] New regex in place, but the matching pattern changes a little, so I think it probably would break if nothing else is changed. Need to spin up a node server so I can test live. --- modules/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling.js b/modules/spelling.js index 37b906d..ea0f581 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -36,7 +36,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']*)|([\d\w\s']*)\*\*?)$/, 2); var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s']*)$/, 3); if(q) { correct(data, q[1], data.user, function (e) {