From 63039f4e2c66b47fac7b759e8926918e732abbaf Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 17 Mar 2012 13:22:25 +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 2a16d9d..e33b425 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-]*)[ ]?=[ ]?(.+)$/, 3); + var q = data.message.valMatch(/^~qadd ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3); if(q) { key = q[1].toLowerCase(); if(!Object.isArray(quotes[key])) {