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:
Clark Boylan 2012-05-11 10:38:14 -07:00
parent b13a316a8d
commit c64076250a
1 changed files with 1 additions and 1 deletions

View File

@ -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.