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:
1f8b22e
)
"," should not be sorted as a number
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 8 Sep 2008 16:00:21 +0000
(16:00 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 8 Sep 2008 16:00:21 +0000
(16:00 +0000)
This is a fix for r40382.
skins/common/wikibits.js
patch
|
blob
|
history
diff --git
a/skins/common/wikibits.js
b/skins/common/wikibits.js
index
34608c7
..
46e814c
100644
(file)
--- a/
skins/common/wikibits.js
+++ b/
skins/common/wikibits.js
@@
-618,8
+618,8
@@
function ts_resortTable(lnk) {
sortfn = ts_sort_currency;
// We allow a trailing percent sign, which we just strip. This works fine
// if percents and regular numbers aren't being mixed.
- else if (itm.match(/^[+-]?
[\d,]+(\.[\d,]*)?([eE][+-]?[\d,]+
)?\%?$/) ||
- itm.match(/^[+-]?\.
[\d,]+([eE][+-]?[\d,]+
)?\%?$/) ||
+ else if (itm.match(/^[+-]?
\d[\d,]*(\.[\d,]*)?([eE][+-]?\d[\d,]*
)?\%?$/) ||
+ itm.match(/^[+-]?\.
\d[\d,]*([eE][+-]?\d[\d,]*
)?\%?$/) ||
itm.match(/^0x[\da-f]+$/i))
sortfn = ts_sort_numeric;