Skip to content

Commit 77ed4f2

Browse files
committed
fix: link density score. Fixes #45
1 parent aaed075 commit 77ed4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/link_thumbnailer/graders/link_density.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def density_ratio
1919
end
2020

2121
def links
22-
node.css('a').map(&:text)
22+
node.css('a').map(&:text).compact.reject(&:empty?)
2323
end
2424

2525
end

0 commit comments

Comments
 (0)