From 3f800cc8cabf715660987c263e7b8be3e532532c Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Thu, 17 Jun 2021 14:56:27 +0200 Subject: [PATCH] Fix the unit tests (#652) Signed-off-by: Cosmin Cojocar --- helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.go b/helpers.go index d57891f..50ce198 100644 --- a/helpers.go +++ b/helpers.go @@ -446,6 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp { // RootPath returns the absolute root path of a scan func RootPath(root string) (string, error) { - root = strings.TrimPrefix(root, "...") + root = strings.TrimSuffix(root, "...") return filepath.Abs(root) }