mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 12:59:34 +01:00
possibly ignore whitespace in qadd..?
This commit is contained in:
parent
cb0bacfabd
commit
63039f4e2c
@ -179,7 +179,7 @@ var quotes = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'~qadd': function(data, params) {
|
'~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) {
|
if(q) {
|
||||||
key = q[1].toLowerCase();
|
key = q[1].toLowerCase();
|
||||||
if(!Object.isArray(quotes[key])) {
|
if(!Object.isArray(quotes[key])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user