Add README, .gitignore, and refactor common detection constants

This commit is contained in:
Evan Hosinski
2025-10-10 16:20:55 -04:00
parent e2015b3df2
commit f48178f450
7 changed files with 764 additions and 92 deletions
@@ -73,8 +73,8 @@ func searchDirectory(dir string, resultChan chan<- string) {
return nil
}
// Check if the file path ends with any CommonImageEnds
for _, imageEnd := range common.CommonImageEnds {
// Check if the file path ends with any CommonImageSuffixes
for _, imageEnd := range common.CommonImageSuffixes {
// Normalize path separators and make case-insensitive comparison
normalizedPath := strings.ToLower(filepath.ToSlash(path))
normalizedImageEnd := strings.ToLower(filepath.ToSlash(imageEnd))