From 38bf4e5b3647c38b7eccc84d8fc7709d3ec3b198 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 17 Jun 2015 10:09:51 +0100 Subject: [PATCH] Bug Fix: Currency symbol characters were not recognised --- src/tablekit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tablekit.js b/src/tablekit.js index 1eeb397..496ee4c 100755 --- a/src/tablekit.js +++ b/src/tablekit.js @@ -603,7 +603,7 @@ TableKit.Sortable.addSortType( return TableKit.Sortable.Type.compare(new Date(ds + a),new Date(ds + b)); }}), new TableKit.Sortable.Type('currency',{ - pattern : /^[$����]/, // dollar,pound,yen,euro,generic currency symbol + pattern : /^[$£¥€¤]/, // dollar,pound,yen,euro,generic currency symbol normal : function(v) { return v ? parseFloat(v.replace(/[^-\d\.]/g,'')) : 0; }}) @@ -935,4 +935,4 @@ TableKit.Bench = { } } */ -document.observe("dom:loaded", TableKit.load); \ No newline at end of file +document.observe("dom:loaded", TableKit.load);