Skip to content

Commit

Permalink
fix: tolower extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rıza Sabuncu committed Apr 3, 2024
1 parent 5619b66 commit 83d72e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
/_/_/ /_/\__,_/\___/_/|_|\__/_/ \___/\___/ %s
`
version = `v1.0.3`
version = `v1.0.4`

treeBranch = `├── `
treeEnd = `└── `
Expand Down Expand Up @@ -181,7 +181,7 @@ func crawl(line chan string, wg *sync.WaitGroup, url string, extensions, matcher
if len(ext) > 0 {
ext = ext[1:]
for _, e := range extensions {
if e == ext {
if strings.ToLower(e) == strings.ToLower(ext) {
line <- prefix + treeEnd + u
continue
}
Expand Down

0 comments on commit 83d72e6

Please sign in to comment.