We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731d0d5 commit df10b65Copy full SHA for df10b65
helpers.go
@@ -446,8 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp {
446
447
// RootPath returns the absolute root path of a scan
448
func RootPath(root string) (string, error) {
449
- if strings.HasSuffix(root, "...") {
450
- root = root[0 : len(root)-3]
451
- }
+ root = strings.TrimPrefix(root, "...")
452
return filepath.Abs(root)
453
}
0 commit comments