forked from GitHub/dbot
possibly ignore whitespace in qadd..?
This commit is contained in:
parent
de873c0302
commit
cb0bacfabd
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user