We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaed075 commit 77ed4f2Copy full SHA for 77ed4f2
lib/link_thumbnailer/graders/link_density.rb
@@ -19,7 +19,7 @@ def density_ratio
19
end
20
21
def links
22
- node.css('a').map(&:text)
+ node.css('a').map(&:text).compact.reject(&:empty?)
23
24
25
0 commit comments