diff --git a/main.go b/main.go index 928ed47..ff478cc 100644 --- a/main.go +++ b/main.go @@ -216,7 +216,7 @@ func walk(p, ext, license string, headerBytes []byte, exclude []string, dry bool } var currentPath = cleanPathPrefixes( - strings.Replace(path, p, "", 1), + strings.TrimLeft(path, p), []string{string(os.PathSeparator)}, )