summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-14 14:45:16 -0600
committerDan McGee <dan@archlinux.org>2011-01-14 14:45:16 -0600
commitd666cf4aaf5e23ecbc5c61fdd5fe63b9e96657e8 (patch)
tree819651545bdd5369f150804831fad15af1bf891a
parentdd72f73edae973c2afdbc8b00fd7f3b1662f3245 (diff)
Fix short date parsing in stock tablesorter JS
This mirrors the change made to the minified file in 09bccb50e7. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--media/jquery.tablesorter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/jquery.tablesorter.js b/media/jquery.tablesorter.js
index 9b587312..331b7617 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);