From 1d96456d4e6a05e9003a79b16e495ee80db2f66c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 24 Oct 2005 21:20:09 +0000 Subject: [PATCH] Fixed whitespace cleanup --- skins/htmldump/lookup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skins/htmldump/lookup.js b/skins/htmldump/lookup.js index 469ee9a183..5fd8d019a1 100644 --- a/skins/htmldump/lookup.js +++ b/skins/htmldump/lookup.js @@ -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); -- 2.20.1