From: Leo Koppelkamm Date: Wed, 27 Apr 2011 11:02:59 +0000 (+0000) Subject: TableSorter: Allow whitespace between digits and percent sign. Fixes Bug 28406 X-Git-Tag: 1.31.0-rc.0~30538 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=507ae6c45ef3728a1aa5684a478cfe34bad38804;p=lhc%2Fweb%2Fwiklou.git TableSorter: Allow whitespace between digits and percent sign. Fixes Bug 28406 --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 0ef1f5b149..5e017a1657 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -415,7 +415,7 @@ // We allow a trailing percent sign, which we just strip. This works fine // if percents and regular numbers aren't being mixed. ts.numberRegex = new RegExp("^(" + "[-+\u2212]?[0-9][0-9,]*(\\.[0-9,]*)?(E[-+\u2212]?[0-9][0-9,]*)?" + // Fortran-style scientific - "|" + "[-+\u2212]?" + digitClass + "+%?" + // Generic localised + "|" + "[-+\u2212]?" + digitClass + "+[\\s\\xa0]*%?" + // Generic localised ")$", "i"); }