the isDigit function in jquery.tablesorter (2.0.3) does not work for 0 or 0.0

the isDigit function in jquery.tablesorter (2.0.3) does not work for 0 or 0.0


Hi,
I'm using jquery.tablesorter (ver 2.0.3) and I'm seeing that the
numeric parser in the parsers failing to detect 0, 0.0, [1-9]*.0 and
00.0[1-9]* as numeric.
Surely 0.0 should be considered numeric as 0?
This is the code in tablesorter to check if it is numeric:
            this.isDigit = function(s,config) {
                var DECIMAL = '\\' + config.decimal;
                var exp = '/(^[+]?0(' + DECIMAL +'0+)?$)|(^([-+]?[1-9][0-9]*)$)|
(^([-+]?((0?|[1-9][0-9]*)' + DECIMAL +'(0*[1-9][0-9]*)))$)|(^[-+]?
[1-9]+[0-9]*' + DECIMAL +'0+$)/';
                return RegExp(exp).test($.trim(s));
            };
Is there a reason that you don't just use '^[+-]?[0-9][0-9]*([.]?[0-9]
[0-9]*+)?$' ?
At the end is the table data that I am using,
Any help would be brilliant.
Thanks,
Ranadave
</tr>
<tr style="display: none;">
<th align="left">Tullamore General (501)</th>
<td>0</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
</tr>
<tr style="display: none;">
<th align="left">UCH, Galway (404)</th>
<td>119</td>
<td>1177310.18</td>
<td>9893.36</td>
<td>5091.72</td>
<td>68091.50</td>
</tr>
<tr style="display: none;">
<th align="left">Waterford Regional (100)</th>
<td>0</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
</tr>
<tr style="display: none;">
<th align="left">Wexford General (103)</th>
<td>0</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
</tr>
<tr style="display: none;">
<th align="left">Bantry (000)</th>
<td>0</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
</tr>
</tbody>