mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Use strings.ReplaceAll instead of strings.Replace(…, -1)
This commit is contained in:
parent
4fe902a5d2
commit
fa12c23d79
2 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ func replaceTextLinks(input string) string {
|
|||
}
|
||||
|
||||
func replaceLineFeeds(input string) string {
|
||||
return strings.Replace(input, "\n", "<br>", -1)
|
||||
return strings.ReplaceAll(input, "\n", "<br>")
|
||||
}
|
||||
|
||||
func replaceCustom(entryContent string, searchTerm string, replaceTerm string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue