1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Trim spaces around icon URLs

This commit is contained in:
Frédéric Guillot 2020-11-06 17:11:52 -08:00
parent 1eb239bf88
commit 40e983664c
2 changed files with 20 additions and 2 deletions

View file

@ -72,7 +72,7 @@ func parseDocument(websiteURL string, data io.Reader) (string, error) {
for _, query := range queries {
doc.Find(query).Each(func(i int, s *goquery.Selection) {
if href, exists := s.Attr("href"); exists {
iconURL = href
iconURL = strings.TrimSpace(href)
}
})