mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
There is no need to materialize the whole text content of the selection only to count its number of commas. As we already have a getLengthOfTextContent function that is pretty similar, this commit refactors it to make it more generic, in the form of a map/fold(+). |
||
---|---|---|
.. | ||
readability.go | ||
readability_test.go | ||
testdata |