From 2fd09aa3f99d10f9dd470604d7692d8f71e1f2cb Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 20 Jan 2012 16:26:47 +0000 Subject: [PATCH] apostrophes bitches --- modules/spelling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/spelling.js b/modules/spelling.js index 8ab2638..37b906d 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -36,8 +36,8 @@ var spelling = function(dbot) { return { 'listener': function(data, params) { - var q = data.message.valMatch(/^\*\*?([\d\w\s]*)$/, 2); - var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)$/, 3); + var q = data.message.valMatch(/^\*\*?([\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) { dbot.say(data.channel, e.correcter + ' meant: ' + e.fix);