From 6638dec85aac0441237be1a652fe94770713fe30 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 9 Apr 2013 22:33:07 +0000 Subject: [PATCH] remove = from flashy regex since all colours are one word anyway --- modules/flashy/flashy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/flashy/flashy.js b/modules/flashy/flashy.js index 8195591..3122dcb 100644 --- a/modules/flashy/flashy.js +++ b/modules/flashy/flashy.js @@ -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) {