From f332fb24a86dd3417ed69951c234fb44a69cddca Mon Sep 17 00:00:00 2001 From: Seednode Date: Sat, 17 Sep 2022 13:12:22 -0500 Subject: [PATCH] Added another slice length check --- cmd/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/files.go b/cmd/files.go index 3e67d78..0650680 100644 --- a/cmd/files.go +++ b/cmd/files.go @@ -22,7 +22,7 @@ func getNextFile(path string) (string, error) { split := re.FindAllStringSubmatch(path, -1) - if len(split[0]) < 3 { + if len(split) < 1 || len(split[0]) < 3 { return "", nil }