|
|
@ -1141,7 +1141,7 @@ Readability.prototype = {
|
|
|
|
this._attempts.push({articleContent: articleContent, textLength: textLength});
|
|
|
|
this._attempts.push({articleContent: articleContent, textLength: textLength});
|
|
|
|
// No luck after removing flags, just return the longest text we found during the different loops
|
|
|
|
// No luck after removing flags, just return the longest text we found during the different loops
|
|
|
|
this._attempts.sort(function (a, b) {
|
|
|
|
this._attempts.sort(function (a, b) {
|
|
|
|
return a.textLength < b.textLength;
|
|
|
|
return (a.textLength < b.textLength) ? 1 : -1;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// But first check if we actually have something
|
|
|
|
// But first check if we actually have something
|
|
|
|