mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
fixed the regex on ~newpoll
This commit is contained in:
parent
66554605e7
commit
30cd5d499d
@ -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];
|
commands['~vote'].regex = [/~vote ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user