Added another slice length check
This commit is contained in:
parent
094bb13cf3
commit
f332fb24a8
|
@ -22,7 +22,7 @@ func getNextFile(path string) (string, error) {
|
||||||
|
|
||||||
split := re.FindAllStringSubmatch(path, -1)
|
split := re.FindAllStringSubmatch(path, -1)
|
||||||
|
|
||||||
if len(split[0]) < 3 {
|
if len(split) < 1 || len(split[0]) < 3 {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue