Skip to content

Commit b133812

Browse files
author
mengyuan.ymy
committed
fix bug in #33
1 parent 265f6cd commit b133812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function expand(str, isTop) {
106106
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
107107
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
108108
var isSequence = isNumericSequence || isAlphaSequence;
109-
var isOptions = /^(.*,)+(.+)?$/.test(m.body);
109+
var isOptions = m.body.indexOf(',') >= 0;
110110
if (!isSequence && !isOptions) {
111111
// {a},b}
112112
if (m.post.match(/,.*\}/)) {

0 commit comments

Comments
 (0)