mirror of
https://github.com/reality/dbot.git
synced 2025-01-26 03:54:18 +01:00
Fixed regex for vote
This commit is contained in:
parent
30cd5d499d
commit
ffd383365e
@ -59,7 +59,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 ([^ ]+) ([^ ]+)/, 3];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'name': 'poll',
|
'name': 'poll',
|
||||||
|
Loading…
Reference in New Issue
Block a user