From d666cf4aaf5e23ecbc5c61fdd5fe63b9e96657e8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 14 Jan 2011 14:45:16 -0600 Subject: Fix short date parsing in stock tablesorter JS This mirrors the change made to the minified file in 09bccb50e7. Signed-off-by: Dan McGee --- media/jquery.tablesorter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'media/jquery.tablesorter.js') diff --git a/media/jquery.tablesorter.js b/media/jquery.tablesorter.js index 9b58731..331b761 100644 --- a/media/jquery.tablesorter.js +++ b/media/jquery.tablesorter.js @@ -969,7 +969,7 @@ ts.addParser({ id: "shortDate", is: function (s) { - return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s); + return /^\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}$/.test(s); }, format: function (s, table) { var c = table.config; s = s.replace(/\-/g, "/"); @@ -1028,4 +1028,4 @@ } } }); -})(jQuery); \ No newline at end of file +})(jQuery); -- cgit v1.2.3-24-g4f1b