From 384cb8c5fae2a33b8d621e4846a37e2a23670497 Mon Sep 17 00:00:00 2001 From: umbrae Date: Sat, 7 Mar 2009 15:26:22 +0000 Subject: Bug fix. Kill breaks globally. git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@14 d4e419ec-0920-11de-bbfd-a7c1bc4c261e --- js/readability-0.1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/readability-0.1.js b/js/readability-0.1.js index aade9b2..3cbc6bf 100755 --- a/js/readability-0.1.js +++ b/js/readability-0.1.js @@ -188,7 +188,7 @@ function killDivs ( e ) { } function killBreaks ( e ) { - e.innerHTML = e.innerHTML.replace(/(\s*){1,}/,'
'); + e.innerHTML = e.innerHTML.replace(/((\s| ?)*){1,}/g,'
'); return e; } -- cgit v1.2.3