From e76e54098267ddfd9fd1a706e99774ae4d151c54 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Fri, 18 Dec 2015 17:45:55 -0600 Subject: [PATCH] Core: fix time parser detection. See #1107 --- js/jquery.tablesorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 584f1f44..4b897cc0 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -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',