From: Tim Starling Date: Mon, 24 Oct 2005 21:20:09 +0000 (+0000) Subject: Fixed whitespace cleanup X-Git-Tag: 1.6.0~1332 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=1d96456d4e6a05e9003a79b16e495ee80db2f66c;p=lhc%2Fweb%2Fwiklou.git Fixed whitespace cleanup --- 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);