Skip to content

Commit

Permalink
Change ReplaceAll to Replace
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Jan 24, 2020
1 parent 6032c0d commit 3d21142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scraper/xpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func scrapePerformerNamesXPath(c scraperTypeConfig, name string) ([]*models.Scra
escapedName := url.QueryEscape(name)

u := c.QueryURL
u = strings.ReplaceAll(u, placeholder, escapedName)
u = strings.Replace(u, placeholder, escapedName, -1)

doc, err := htmlquery.LoadURL(u)

Expand Down

0 comments on commit 3d21142

Please sign in to comment.