remove = from flashy regex since all colours are one word anyway

This commit is contained in:
reality 2013-04-09 22:33:07 +00:00
parent b038ecf63f
commit 6638dec85a

View File

@ -18,7 +18,7 @@ var flashy = function(dbot) {
this.commands = {
'~flashy': function(event) {
var colour = event.input[1].trim();
var colour = event.input[1];
var text = event.input[2].trim().toUpperCase();
if(_.has(this.colourMap, colour)) {
@ -34,7 +34,7 @@ var flashy = function(dbot) {
}
};
this.commands['~flashy'].regex = [/^~flashy ([\d\w-]+[\d\w\s-]*)[ ]?=[ ]?(.+)$/, 3];
this.commands['~flashy'].regex = [/^~flashy ([^ ]+) (.+)$/, 3];
};
exports.fetch = function(dbot) {