From cb0bacfabd8f5a065a246038d3b16eeafc88ada0 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 17 Mar 2012 13:20:21 +0000 Subject: [PATCH] possibly ignore whitespace in qadd..? --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index 141e73f..2a16d9d 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -179,7 +179,7 @@ var quotes = function(dbot) { }, '~qadd': function(data, params) { - var q = data.message.valMatch(/^~qadd ([\d\w\s-]*)\t?=\t?(.+)$/, 3); + var q = data.message.valMatch(/^~qadd ([\d\w\s-]*)[ ]?=[ ]?(.+)$/, 3); if(q) { key = q[1].toLowerCase(); if(!Object.isArray(quotes[key])) {