Skip to content

Commit

Permalink
fix double slash
Browse files Browse the repository at this point in the history
  • Loading branch information
riza committed Jul 5, 2024
1 parent 7b93793 commit 66b0d51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
/_/_/ /_/\__,_/\___/_/|_|\__/_/ \___/\___/ %s
`
version = `v1.0.5`
version = `v1.0.6`

treeBranch = `├── `
treeEnd = `└── `
Expand Down Expand Up @@ -134,6 +134,8 @@ func crawl(line chan string, wg *sync.WaitGroup, url string, extensions, matcher
wg.Add(1)
defer wg.Done()

url = strings.ReplaceAll(url, "//", "/")

body, err := get(url)
if err != nil {
return fmt.Errorf("error getting index: %w", err)
Expand Down

0 comments on commit 66b0d51

Please sign in to comment.