From 507ae6c45ef3728a1aa5684a478cfe34bad38804 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Wed, 27 Apr 2011 11:02:59 +0000 Subject: [PATCH] TableSorter: Allow whitespace between digits and percent sign. Fixes Bug 28406 --- resources/jquery/jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.20.1