Tweak #startvote parsing.
Seems like everyone wants to use '+1, +0, -1' as their startvote options. Made a slight change to the RE that splits options to allow +1, etc to be used. This change should also prevent splitting up hyphenated options. Change-Id: I7679f8bc1cfb505e1f88f2df7425bf12a0519acc
This commit is contained in:
parent
b13a316a8d
commit
c64076250a
|
@ -70,7 +70,7 @@ class Config(object):
|
|||
# Regular expression for parsing the startvote command.
|
||||
startvote_RE = re.compile(r'(?P<question>.*)\?\s*(?P<choices>.*)')
|
||||
# Regular expression for parsing the startvote options.
|
||||
choicesSplit_RE = re.compile(r'\W+')
|
||||
choicesSplit_RE = re.compile(r'[^\w+-]+')
|
||||
# default voting options if none are given by the user
|
||||
defaultVoteOptions = ['Yes', 'No']
|
||||
# The channels which won't have date/time appended to the filename.
|
||||
|
|
Loading…
Reference in New Issue