diff --git a/modules/js.js b/modules/js.js index 4350be4..4634594 100644 --- a/modules/js.js +++ b/modules/js.js @@ -3,7 +3,7 @@ var js = function(dbot) { var commands = { '~js': function(data, params) { - var q = data.message.valMatch(/^~js ([\d\w\s]\+*)/, 2); + var q = data.message.valMatch(/^~js (.*)/, 2); dbot.say(data.channel, eval(q[1])); } };