The following poll was suggested to me:
How do you pronounce "regex"? | ri.ɡɛks | ri.dʒɛks | re.ɡeks | re.compile(r'r(i|e)\.(g|dʒ)(e|ɛ)ks') and I'm a nerd
As you can tell, the regex's | will cause an error and split the last intended option into:
Question:
How do you pronounce "regex"?
Poll Options:
ri.ɡɛks
ri.dʒɛks
re.ɡeks
re.compile(r'r(i
e)\.(g
dʒ)(e
ɛ)ks')
Cool, so let's just change the separator to , to get:
How do you pronounce "regex"?, ri.ɡɛks, ri.dʒɛks, re.ɡeks, re.compile(r'r(i|e)\.(g|dʒ)(e|ɛ)ks') and I'm a nerd
This results with the following:
Question:
How do you pronounce "regex"?, ri.ɡɛks, ri.dʒɛks, re.ɡeks, re.compile(r'r(i
Poll Options:
e)\.(g
dʒ)(e
ɛ)ks')
The actual solution was to use the following (NOTE: /poll htmlcreate is locked behind the room owner roll):
/poll htmlcreate How do you pronounce "regex"? | ri.ɡɛks | ri.dʒɛks | re.ɡeks | re.compile(r'r(i|e)\.(g|dʒ)(e|ɛ)ks') and I'm a nerd
After talking this over, we came up with the idea to allow users to simply escape separators, presumably like \|
Thanks BreadLoeuf for requesting this poll. Attaching McLemore who volunteered to implement this if approved.
If this is rejected, I would like to document | takes precedence over , as a separator in /help poll
How do you pronounce "regex"? | ri.ɡɛks | ri.dʒɛks | re.ɡeks | re.compile(r'r(i|e)\.(g|dʒ)(e|ɛ)ks') and I'm a nerd
As you can tell, the regex's | will cause an error and split the last intended option into:
Question:
How do you pronounce "regex"?
Poll Options:
ri.ɡɛks
ri.dʒɛks
re.ɡeks
re.compile(r'r(i
e)\.(g
dʒ)(e
ɛ)ks')
Cool, so let's just change the separator to , to get:
How do you pronounce "regex"?, ri.ɡɛks, ri.dʒɛks, re.ɡeks, re.compile(r'r(i|e)\.(g|dʒ)(e|ɛ)ks') and I'm a nerd
This results with the following:
Question:
How do you pronounce "regex"?, ri.ɡɛks, ri.dʒɛks, re.ɡeks, re.compile(r'r(i
Poll Options:
e)\.(g
dʒ)(e
ɛ)ks')
The actual solution was to use the following (NOTE: /poll htmlcreate is locked behind the room owner roll):
/poll htmlcreate How do you pronounce "regex"? | ri.ɡɛks | ri.dʒɛks | re.ɡeks | re.compile(r'r(i|e)\.(g|dʒ)(e|ɛ)ks') and I'm a nerd
After talking this over, we came up with the idea to allow users to simply escape separators, presumably like \|
Thanks BreadLoeuf for requesting this poll. Attaching McLemore who volunteered to implement this if approved.
If this is rejected, I would like to document | takes precedence over , as a separator in /help poll