Skip to content

Commit

Permalink
Merge pull request #85 from gigarashi/master
Browse files Browse the repository at this point in the history
Trim white space prefix in line of robots.txt
  • Loading branch information
hakluke authored Feb 22, 2021
2 parents e39a514 + 9ba0782 commit bd3d30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (c *Collector) parseRobots(url string, reqsMade *syncList) {

for _, line := range lines {
if re.MatchString(line) {
urlstring := re.ReplaceAllString(line, "")
urlstring := strings.TrimLeft(re.ReplaceAllString(line, ""), " ")
if c.conf.IncludeRobots || c.conf.IncludeAll {
_ = c.recordIfInScope(c.au.BrightMagenta("[robots]"), url, url+urlstring, reqsMade)
}
Expand Down

0 comments on commit bd3d30a

Please sign in to comment.