miniflux/internal
Frédéric Guillot 97765b93a9 Revert "Minor internal/reader/readability/readability.go speedup"
This reverts commit 4db138d4b8.

```
panic: runtime error: index out of range [-1]

goroutine 49 [running]:
miniflux.app/v2/internal/reader/readability.getArticle.func1(0x8?, 0xc000b56570)
        /home/fred/repos/miniflux/v2/internal/reader/readability/readability.go:120 +0x2ac
github.com/PuerkitoBio/goquery.(*Selection).Each(0xc000b56510, 0xc000892fa8)
        /home/fred/go/pkg/mod/github.com/!puerkito!bio/goquery@v1.9.0/iteration.go:10 +0x62
miniflux.app/v2/internal/reader/readability.getArticle(0xc00044f1f0, 0xc000a04a50)
        /home/fred/repos/miniflux/v2/internal/reader/readability/readability.go:101 +0x15d
miniflux.app/v2/internal/reader/readability.ExtractContent({0x1005d00?, 0xc0001522d0?})
        /home/fred/repos/miniflux/v2/internal/reader/readability/readability.go:91 +0x211
miniflux.app/v2/internal/reader/scraper.ScrapeWebsite(0xc000893688?, {0xc0007ce720, 0x54}, {0x0, 0x0})
        /home/fred/repos/miniflux/v2/internal/reader/scraper/scraper.go:63 +0x859
miniflux.app/v2/internal/reader/processor.ProcessFeedEntries(0xc000133188, 0xc000502c40, 0xc0003e6360, 0x0)
        /home/fred/repos/miniflux/v2/internal/reader/processor/processor.go:77 +0x8ea
miniflux.app/v2/internal/reader/handler.RefreshFeed(0xc000133188, 0x10cf, 0x52d5c, 0x0)
        /home/fred/repos/miniflux/v2/internal/reader/handler/handler.go:301 +0x1485
miniflux.app/v2/internal/cli.refreshFeeds.func1(0x0)
        /home/fred/repos/miniflux/v2/internal/cli/refresh_feeds.go:59 +0x2d7
created by miniflux.app/v2/internal/cli.refreshFeeds in goroutine 1
        /home/fred/repos/miniflux/v2/internal/cli/refresh_feeds.go:50 +0x5d5
```
2024-02-29 19:06:03 -08:00
..
api Add feed option to disable HTTP/2 to avoid fingerprinting 2024-02-24 22:30:26 -08:00
cli Use modern for loops 2024-02-28 19:55:28 -08:00
config Remove a superfluous condition 2024-02-28 19:47:30 -08:00
crypto Remove github.com/google/uuid 2024-02-26 18:31:12 -08:00
database Add feed option to disable HTTP/2 to avoid fingerprinting 2024-02-24 22:30:26 -08:00
fever Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
googlereader Don't mix up capacity and length 2024-02-28 19:57:30 -08:00
http Fix inaccessible metrics endpoint when listening on Unix socket 2023-12-06 19:52:33 -08:00
integration Use %q instead of "%s" 2024-02-28 19:47:30 -08:00
locale Add missing plurals for some languages 2024-02-28 20:38:10 -08:00
metric Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
model Use %q instead of "%s" 2024-02-28 19:47:30 -08:00
oauth2 Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
proxy Proxify video poster attribute 2024-02-23 18:44:20 -08:00
reader Revert "Minor internal/reader/readability/readability.go speedup" 2024-02-29 19:06:03 -08:00
storage Don't mix up capacity and length 2024-02-28 19:57:30 -08:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template Simplify formatFileSize 2024-02-28 19:32:38 -08:00
tests Simplify username generation for the tests 2024-02-29 18:36:34 -08:00
timezone Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
ui Use %q instead of "%s" 2024-02-28 19:47:30 -08:00
urllib Use strings.EqualFold instead of strings.ToLower(…) == 2024-02-28 19:47:30 -08:00
validator Remove Golint 2024-02-24 21:17:56 -08:00
version Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
worker Use modern for loops 2024-02-28 19:55:28 -08:00