mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: fix time parser detection. See #1107
This commit is contained in:
parent
0648c8025c
commit
e76e540982
@ -2624,7 +2624,7 @@
|
||||
});
|
||||
|
||||
// match 24 hour time & 12 hours time + am/pm - see http://regexr.com/3c3tk
|
||||
ts.regex.timeTest = /^([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
|
||||
ts.regex.timeTest = /^([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
|
||||
ts.regex.timeMatch = /([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;
|
||||
ts.addParser({
|
||||
id : 'time',
|
||||
|
Loading…
Reference in New Issue
Block a user