node-readability
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "node-readability", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Zihua Li", | ||
@@ -5,0 +5,0 @@ "description": "Turning any web page into a clean view.", |
@@ -96,3 +96,3 @@ // All of the regular expressions in use within readability. | ||
var unlikelyMatchString = node.className + node.id; | ||
if (unlikelyMatchString.search(regexps.unlikelyCandidatesRe) !== -1 && unlikelyMatchString.search(regexps.okMaybeItsACandidateRe) == -1 && node.tagName !== "BODY") { | ||
if (unlikelyMatchString.search(regexps.unlikelyCandidatesRe) !== -1 && unlikelyMatchString.search(regexps.okMaybeItsACandidateRe) == -1 && node.tagName !== 'HTML' && node.tagName !== "BODY") { | ||
dbg("Removing unlikely candidate - " + unlikelyMatchString); | ||
@@ -99,0 +99,0 @@ node.parentNode.removeChild(node); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31620
10