1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00
miniflux-v2/internal/reader/readability
jvoisin c064891314 perf(readability): Simplify removeUnlikelyCandidates
- Use an array of strings instead of a regex, like done in ef13756b1a7a7ba30fd34174a5367381fd8b4849
- Extract the `shouldRemove` function from `removeUnlikelyCandidates`, as there
  is no reason to have it there instead of being a proper standalone function.
- Improve a condition, where the goquery selection would have its `id`
  attribute left unchecked if a `class` one was present, regardless of if
  `class` was a candidate to removal or not.
- Add some comments
2025-06-29 15:31:01 -07:00
..
readability.go perf(readability): Simplify removeUnlikelyCandidates 2025-06-29 15:31:01 -07:00
readability_test.go test(readability): add tests for removeUnlikelyCandidates function 2025-06-29 15:23:56 -07:00
testdata Refactor internal/reader/readability/testdata 2024-12-15 20:52:32 -08:00