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:
parent
1eb239bf88
commit
40e983664c
2 changed files with 20 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue