Skip to content

Commit

Permalink
fix . path
Browse files Browse the repository at this point in the history
  • Loading branch information
rostrovsky committed Aug 5, 2024
1 parent d6d314a commit 789746c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Your analysis should be thorough, insightful, and aimed at enabling AI agents to
`

const (
version = "1.0.2"
version = "1.0.3"
)

var (
Expand Down
5 changes: 4 additions & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ func ProcessPath(path string, prefixToRemove string, include *regexp.Regexp, exc
}

// skip directories and hidden files
trimmedPath := strings.TrimPrefix(filePath, prefixToRemove)
trimmedPath := filePath
if prefixToRemove != "." {
trimmedPath = strings.TrimPrefix(filePath, prefixToRemove)
}
trimmedPath = strings.TrimLeft(trimmedPath, "/")
trimmedPath = strings.TrimLeft(trimmedPath, "\\")
if info.IsDir() || strings.HasPrefix(trimmedPath, ".") {
Expand Down

0 comments on commit 789746c

Please sign in to comment.