Skip to content

Commit

Permalink
fix -title newline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Nov 7, 2023
1 parent b6b8d6e commit 37591e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/httpx/title.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func ExtractTitle(r *Response) (title string) {

// remove unwanted chars
title = strings.TrimSpace(strings.Trim(title, cutset))
title = stringsutil.ReplaceAll(title, "\n", "\r")
title = stringsutil.ReplaceAll(title, "", "\n", "\r")

return title
}
Expand Down

0 comments on commit 37591e1

Please sign in to comment.