Fixed whitespace cleanup
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 24 Oct 2005 21:20:09 +0000 (21:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 24 Oct 2005 21:20:09 +0000 (21:20 +0000)
skins/htmldump/lookup.js

index 469ee9a..5fd8d01 100644 (file)
@@ -31,11 +31,11 @@ function getStaticURL(text, depth) {
 
 function getPDBK(text) {
        // Spaces to underscores
-       text = text.replace(" ", "_");
+       text = text.replace(/ /g, "_");
 
        // Trim leading and trailing space
-       text = text.replace(/^_+/, "");
-       text = text.replace(/_+$/, "");
+       text = text.replace(/^_+/g, "");
+       text = text.replace(/_+$/g, "");
 
        // Capitalise first letter
        return ucfirst(text);