From 487234078441e1a2439bc1fd6b36021270bc6c12 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 12 Dec 2011 14:06:05 +0000 Subject: [PATCH] Allow - in category names --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index 640d078..eab5454 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -100,7 +100,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])) {