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 66b0d51 commit 0b942f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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.6`
version = `v1.0.7`

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

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

body, err := get(url)
if err != nil {
Expand Down

0 comments on commit 0b942f1

Please sign in to comment.