From f5c46a7b14ded61b69df239b11af4873bd0a3af2 Mon Sep 17 00:00:00 2001 From: PalmerAL Date: Mon, 4 Mar 2019 18:08:41 -0600 Subject: [PATCH] fix formatting --- Readability.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readability.js b/Readability.js index 7283a40..52f5f90 100644 --- a/Readability.js +++ b/Readability.js @@ -580,8 +580,8 @@ Readability.prototype = { // Clean out elements with little content that have "share" in their id/class combinations from final top candidates, // which means we don't remove the top candidates even they have "share". - var shareElementThreshold = this.DEFAULT_CHAR_THRESHOLD - + var shareElementThreshold = this.DEFAULT_CHAR_THRESHOLD; + this._forEachNode(articleContent.children, function (topCandidate) { this._cleanMatchedNodes(topCandidate, function (node, matchString) { return /share/.test(matchString) && node.textContent.length < shareElementThreshold;