dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396a109
)
Fixed whitespace cleanup
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 24 Oct 2005 21:20:09 +0000
(21:20 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 24 Oct 2005 21:20:09 +0000
(21:20 +0000)
skins/htmldump/lookup.js
patch
|
blob
|
history
diff --git
a/skins/htmldump/lookup.js
b/skins/htmldump/lookup.js
index
469ee9a
..
5fd8d01
100644
(file)
--- 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);