mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
isDigit function now false with an empty string. Issue #88
This commit is contained in:
parent
0c2c9a718d
commit
fdda285b1f
@ -886,7 +886,7 @@
|
||||
};
|
||||
this.isDigit = function(s) {
|
||||
// replace all unwanted chars and match.
|
||||
return (/^[\-+(]?\d*[)]?$/).test(s.replace(/[,.'\s]/g, ''));
|
||||
return (/^[\-+(]?\d+[)]?$/).test(s.replace(/[,.'\s]/g, ''));
|
||||
};
|
||||
|
||||
// regex used in natural sort
|
||||
|
Loading…
Reference in New Issue
Block a user