Skip to content

Commit 6b3961c

Browse files
author
Jan Weiß
committed
Fixing gap in node_length coverage.
1 parent f9b604c commit 6b3961c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

readability/readability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def get_article(self, candidates, best_candidate):
159159

160160
if node_length > 80 and link_density < 0.25:
161161
append = True
162-
elif node_length < 80 and link_density == 0 and re.search('\.( |$)', node_content):
162+
elif node_length <= 80 and link_density == 0 and re.search('\.( |$)', node_content):
163163
append = True
164164

165165
if append:

0 commit comments

Comments
 (0)