提交 21c11bc8 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix a issue caused by : in []

上级 526fe55f
......@@ -164,7 +164,8 @@ func ParseRangeItem(item string) (string, string, int) {
repeat := 1
item = strings.TrimSpace(item)
if string(item[0]) == string(constant.LeftChar) && string(item[len(item) - 1]) == string(constant.RightChar) {
if string(item[0]) == string(constant.LeftChar) && // It's a whole when meet (xxx)
string(item[len(item) - 1]) == string(constant.RightChar) {
return item, step, repeat
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册