From bdc0a67d5be43ec8b03ba1ade63825995d3f1cc6 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Wed, 3 Sep 2008 14:02:32 +0000 Subject: [PATCH] Fix for r40379, allow commas again --- skins/common/wikibits.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); -- 2.20.1