From: Aryeh Gregor Date: Wed, 3 Sep 2008 14:02:32 +0000 (+0000) Subject: Fix for r40379, allow commas again X-Git-Tag: 1.31.0-rc.0~45509 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=bdc0a67d5be43ec8b03ba1ade63825995d3f1cc6;p=lhc%2Fweb%2Fwiklou.git Fix for r40379, allow commas again --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index fa6fe83766..34608c7017 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -618,9 +618,9 @@ 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(/^[+-]?[0-9]+(\.[0-9]*)?([eE][+-]?[0-9]+)?\%?$/) || - itm.match(/^[+-]?\.[0-9]+([eE][+-]?[0-9]+)?\%?$/) || - itm.match(/^0[xX][0-9a-fA-F]+$/)) + else if (itm.match(/^[+-]?[\d,]+(\.[\d,]*)?([eE][+-]?[\d,]+)?\%?$/) || + itm.match(/^[+-]?\.[\d,]+([eE][+-]?[\d,]+)?\%?$/) || + itm.match(/^0x[\da-f]+$/i)) sortfn = ts_sort_numeric; var reverse = (span.getAttribute("sortdir") == 'down');