summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorumbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e>2009-03-07 14:12:40 +0000
committerumbrae <umbrae@d4e419ec-0920-11de-bbfd-a7c1bc4c261e>2009-03-07 14:12:40 +0000
commit2c590168885afa9c5585135114eba57bb12ee46f (patch)
treeee587dd4616c5d0f52f4ddb8b2bf47aca030cfe6
parent6aee20bdf2b9fa23320e900ea2f2ea8bd5ab94e5 (diff)
downloadreadability-simple-2c590168885afa9c5585135114eba57bb12ee46f.tar.bz2
readability-simple-2c590168885afa9c5585135114eba57bb12ee46f.zip
Missed the global operator on stripping fonts
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@10 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
-rwxr-xr-xjs/readability-0.1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/readability-0.1.js b/js/readability-0.1.js
index d0e9a56..9397687 100755
--- a/js/readability-0.1.js
+++ b/js/readability-0.1.js
@@ -47,7 +47,7 @@ function grabArticle() {
// Replace all doubled-up <BR> tags with <P> tags, and remove fonts.
var pattern = new RegExp ("<br/?>[ \r\n\s]*<br/?>", "g");
- document.body.innerHTML = document.body.innerHTML.replace(pattern, "</p><p>").replace(/<\/?font[^>]*>/, '');
+ document.body.innerHTML = document.body.innerHTML.replace(pattern, "</p><p>").replace(/<\/?font[^>]*>/g, '');
// Grab the title from the <title> tag and inject it as the title.
articleTitle.innerHTML = document.title;