Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -618,8 +618,8 @@ |
619 | 619 | sortfn = ts_sort_currency; |
620 | 620 | // We allow a trailing percent sign, which we just strip. This works fine |
621 | 621 | // if percents and regular numbers aren't being mixed. |
622 | | - else if (itm.match(/^[+-]?[\d,]+(\.[\d,]*)?([eE][+-]?[\d,]+)?\%?$/) || |
623 | | - itm.match(/^[+-]?\.[\d,]+([eE][+-]?[\d,]+)?\%?$/) || |
| 622 | + else if (itm.match(/^[+-]?\d[\d,]*(\.[\d,]*)?([eE][+-]?\d[\d,]*)?\%?$/) || |
| 623 | + itm.match(/^[+-]?\.\d[\d,]*([eE][+-]?\d[\d,]*)?\%?$/) || |
624 | 624 | itm.match(/^0x[\da-f]+$/i)) |
625 | 625 | sortfn = ts_sort_numeric; |
626 | 626 | |