diff --git a/modules/poll.js b/modules/poll.js index 31700ae..ee602eb 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -58,7 +58,7 @@ var poll = function(dbot) { } }; - commands['~newpoll'].regex = [/~newpoll ([^ ]+) \[options=(\[^ ]+)\] (.+)/, 4]; + commands['~newpoll'].regex = [/~newpoll ([^ ]+) \[options=([^ ]+)\] (.+)/, 4]; commands['~vote'].regex = [/~vote ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3]; return {