We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 265f6cd commit b133812Copy full SHA for b133812
index.js
@@ -106,7 +106,7 @@ function expand(str, isTop) {
106
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
107
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
108
var isSequence = isNumericSequence || isAlphaSequence;
109
- var isOptions = /^(.*,)+(.+)?$/.test(m.body);
+ var isOptions = m.body.indexOf(',') >= 0;
110
if (!isSequence && !isOptions) {
111
// {a},b}
112
if (m.post.match(/,.*\}/)) {
0 commit comments