diff options
author | Dan McGee <dan@archlinux.org> | 2014-03-09 11:12:40 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-03-09 11:12:40 -0500 |
commit | 81a2051e346bb41fb9756695566f735d5035bfd8 (patch) | |
tree | acd0a47ca9b50f20df5a3ed7675489b008bfdc6b | |
parent | e395bef7241a71cd72d24362bf233251746c8c8b (diff) |
Allow filesize sorter to match character
This gets the sorter working correctly again on the developer reports
pages where we show file sizes. Apparently the Django filesizeformat tag
now uses non-breaking spaces.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | sitestatic/archweb.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sitestatic/archweb.js b/sitestatic/archweb.js index 800c5add..209d6f67 100644 --- a/sitestatic/archweb.js +++ b/sitestatic/archweb.js @@ -103,7 +103,7 @@ if (typeof $ !== 'undefined' && typeof $.tablesorter !== 'undefined') { $.tablesorter.addParser({ id: 'filesize', - re: /^(\d+(?:\.\d+)?) (bytes?|[KMGTPEZY]i?B)$/, + re: /^(\d+(?:\.\d+)?)[ \u00a0](bytes?|[KMGTPEZY]i?B)$/, is: function(s) { return this.re.test(s); }, |