mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: update natural sort regular expression
This commit is contained in:
parent
d8b4434446
commit
fca2c9d27e
@ -1588,7 +1588,7 @@
|
|||||||
|
|
||||||
// *** sort functions ***
|
// *** sort functions ***
|
||||||
// regex used in natural sort
|
// regex used in natural sort
|
||||||
ts.regex.chunk = /(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi; // chunk/tokenize numbers & letters
|
ts.regex.chunk = /(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi; // chunk/tokenize numbers & letters
|
||||||
ts.regex.chunks = /(^\\0|\\0$)/; // replace chunks @ ends
|
ts.regex.chunks = /(^\\0|\\0$)/; // replace chunks @ ends
|
||||||
ts.regex.hex = /^0x[0-9a-f]+$/i; // hex
|
ts.regex.hex = /^0x[0-9a-f]+$/i; // hex
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user